From nobody Tue Mar 31 20:30:40 2026 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4flfrp0hVXz6Y00P for ; Tue, 31 Mar 2026 20:30:50 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from smtp.fjl.org.uk (smtp.fjl.org.uk [185.174.224.37]) by mx1.freebsd.org (Postfix) with ESMTP id 4flfrn15G4z3SkL for ; Tue, 31 Mar 2026 20:30:48 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 185.174.224.37 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk Received: from [192.168.1.154] (mux.fjl.org.uk [92.62.9.11]) (authenticated bits=0) by smtp.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 62VKUfvC071541 for ; Tue, 31 Mar 2026 21:30:41 +0100 (BST) (envelope-from freebsd-doc@fjl.co.uk) Content-Type: multipart/alternative; boundary="------------HHlQfHH0bPJrfAYCyXp7RhMY" Message-ID: Date: Tue, 31 Mar 2026 21:30:40 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [List] phpldapadmin-php85 Content-Language: en-GB To: questions@FreeBSD.org References: <20260322104702.00006667@seibercom.net> From: Frank Leonhardt In-Reply-To: <20260322104702.00006667@seibercom.net> X-Spamd-Result: default: False [-0.71 / 15.00]; NEURAL_HAM_LONG(-0.92)[-0.920]; NEURAL_SPAM_SHORT(0.48)[0.485]; NEURAL_HAM_MEDIUM(-0.27)[-0.271]; R_SPF_ALLOW(-0.20)[+ip4:185.174.224.37]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ASN(0.00)[asn:12703, ipnet:185.174.224.0/24, country:GB]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@FreeBSD.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[fjl.co.uk]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4flfrn15G4z3SkL X-Spamd-Bar: / This is a multi-part message in MIME format. --------------HHlQfHH0bPJrfAYCyXp7RhMY Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------HHlQfHH0bPJrfAYCyXp7RhMY Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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.

--------------HHlQfHH0bPJrfAYCyXp7RhMY--