Re: [List] phpldapadmin-php85

Frank Leonhardt <[email protected]>
Newsgroups gmane.os.freebsd.questions
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.