phpldapadmin-php85

0 views
Skip to first unread message

Gerard E. Seibert

unread,
Mar 22, 2026, 10:54:35 AM (12 days ago) Mar 22
to ques...@freebsd.org
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.

Frank Leonhardt

unread,
Mar 31, 2026, 4:31:19 PM (2 days ago) Mar 31
to ques...@freebsd.org
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.

Reply all
Reply to author
Forward
0 new messages