Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2026 21:30:40 +0100
From:      Frank Leonhardt <freebsd-doc@fjl.co.uk>
To:        questions@FreeBSD.org
Subject:   Re: [List] phpldapadmin-php85
Message-ID:  <b46822b5-6484-4150-a3c1-5655bd8ab7c7@fjl.co.uk>
In-Reply-To: <20260322104702.00006667@seibercom.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 22/03/2026 14:47, Gerard E. Seibert wrote:
> FreeBSD 14.4-RELEASE
> PHP 8.5.4
>
> I am unable to get 'phpldapadmin-php85' working on my system.
> These warnings appear when I try to log in:
>
> Deprecated: Non-canonical cast (double) is deprecated, use the (float)
> cast instead in /usr/local/www/phpldapadmin/lib/functions.php on line
> 2847
>
> Deprecated: Non-canonical cast (double) is deprecated, use the (float)
> cast instead in /usr/local/www/phpldapadmin/lib/functions.php on line
> 2848
>
> Deprecated: Using null as an array offset is deprecated, use an empty
> string instead in /usr/local/www/phpldapadmin/lib/functions.php on line
> 362
>
> Deprecated: Using null as an array offset is deprecated, use an empty
> string instead in /usr/local/www/phpldapadmin/lib/functions.php on line
> 362
>
> Warning: Undefined global variable $_SESSION in
> /usr/local/www/phpldapadmin/lib/session_functions.php on line 100
>
> Deprecated: Constant E_STRICT is deprecated since 8.4, the error level
> was removed in /usr/local/www/phpldapadmin/lib/functions.php on line 148
>
> Warning: Cannot modify header information - headers already sent by
> (output started at /usr/local/www/phpldapadmin/htdocs/index.php:52) in
> /usr/local/www/phpldapadmin/lib/page.php on line 69
>
> I tried Googling, but the answers I found only worsened the situation.
> I completely removed everything, including the 'phpldapadmin' directory,
> then reinstalled the program. It still fails.
>
> Interestingly, I also have 'phpMyAdmin' installed, and it
> works.
PHP 8.5 now issues warnings about language features that are deprecated. 
You can ignore them for now, but in PHP 9 or whatever these deprecated 
things might no longer work. I get this with users a lot :-)

If it's your server you can suppress these warnings by setting 
error_reporting by plonking this in php.ini:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING
display_errors = Off

If it's not your server or you want to keep the warnings you can do this 
at the start of the program(?) using something like:

error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_DEPRECATED);

Or

If you're using Apache you can also do it in the .htaccess file for the 
application but I can't remember the runes - I think you need the 
numerical version of the bit twiddling above  - i.e.  echo E_ALL & 
~E_WARNING & ~E_NOTICE & ~E_DEPRECATED

This stuff is that there are multiple names for particular types (yes, 
PHP now has types!). Basically, 'C' types names like int, bool, float 
are preferred (also string) and old ones like double, integer, boolean 
are deprecated. You can edit the PHP easily enough to tidy it up if 
you're anything of a programmer - it's nothing magic.

NB. Use at your own risk - I'm a 'C' programmer but I have been looking 
after servers hosting other's PHP for a while now...

Regards, Frank.

[-- Attachment #2 --]
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 22/03/2026 14:47, Gerard E. Seibert
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20260322104702.00006667@seibercom.net">
      <pre class="moz-quote-pre" wrap="">FreeBSD 14.4-RELEASE
PHP 8.5.4

I am unable to get 'phpldapadmin-php85' working on my system.
These warnings appear when I try to log in:

Deprecated: Non-canonical cast (double) is deprecated, use the (float)
cast instead in /usr/local/www/phpldapadmin/lib/functions.php on line
2847

Deprecated: Non-canonical cast (double) is deprecated, use the (float)
cast instead in /usr/local/www/phpldapadmin/lib/functions.php on line
2848

Deprecated: Using null as an array offset is deprecated, use an empty
string instead in /usr/local/www/phpldapadmin/lib/functions.php on line
362

Deprecated: Using null as an array offset is deprecated, use an empty
string instead in /usr/local/www/phpldapadmin/lib/functions.php on line
362

Warning: Undefined global variable $_SESSION in
/usr/local/www/phpldapadmin/lib/session_functions.php on line 100

Deprecated: Constant E_STRICT is deprecated since 8.4, the error level
was removed in /usr/local/www/phpldapadmin/lib/functions.php on line 148

Warning: Cannot modify header information - headers already sent by
(output started at /usr/local/www/phpldapadmin/htdocs/index.php:52) in
/usr/local/www/phpldapadmin/lib/page.php on line 69

I tried Googling, but the answers I found only worsened the situation.
I completely removed everything, including the 'phpldapadmin' directory,
then reinstalled the program. It still fails.

Interestingly, I also have 'phpMyAdmin' installed, and it
works.</pre>
    </blockquote>
    PHP 8.5 now issues warnings about language features that are
    deprecated. You can ignore them for now, but in PHP 9 or whatever
    these deprecated things might no longer work. I get this with users
    a lot :-)<br>
    <br>
    If it's your server you can suppress these warnings by setting
    error_reporting by plonking this in php.ini:<br>
    <br>
    error_reporting = E_ALL &amp; ~E_DEPRECATED &amp; ~E_NOTICE &amp;
    ~E_WARNING<br>
    display_errors = Off<br>
    <br>
    If it's not your server or you want to keep the warnings you can do
    this at the start of the program(?) using something like:<br>
    <br>
    error_reporting(E_ALL &amp; ~E_WARNING &amp; ~E_NOTICE &amp;
    ~E_DEPRECATED);<br>
    <br>
    Or <br>
    <br>
    If you're using Apache you can also do it in the .htaccess file for
    the application but I can't remember the runes - I think you need
    the numerical version of the bit twiddling above  - i.e.  echo E_ALL
    &amp; ~E_WARNING &amp; ~E_NOTICE &amp; ~E_DEPRECATED<br>
    <br>
    This stuff is that there are multiple names for particular types
    (yes, PHP now has types!). Basically, 'C' types names like int,
    bool, float are preferred (also string) and old ones like double,
    integer, boolean are deprecated. You can edit the PHP easily enough
    to tidy it up if you're anything of a programmer - it's nothing
    magic.<br>
    <br>
    NB. Use at your own risk - I'm a 'C' programmer but I have been
    looking after servers hosting other's PHP for a while now...<br>
    <br>
    Regards, Frank.<br>
    <br style="white-space: pre-wrap;">
    <p><span style="white-space: pre-wrap">
</span></p>
  </body>
</html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b46822b5-6484-4150-a3c1-5655bd8ab7c7>