Am 25.11.25 um 20:39 schrieb Jim Pazarena via Users:
On 2025-11-25 9:43 AM, Jim Pazarena wrote:
I am on FreeBSD (14.3p5). I did some updates. Now my roundcube (1.6.11) webmail fails with this require_once() / array_first() error.

And suggestions would be very much appreciated.

[Tue Nov 25 09:36:04.095321 2025] [php:error] [pid 12559] [client 23.235.68.254:49684] PHP Fatal error:  Cannot redeclare function array_first() in /u/roundcube/program/lib/Roundcube/bootstrap.php on line 308\nStack trace:\n#0 /u/roundcube/ index.php(40):require_once()\n#1 {main}, referer: https://emailh.ca/


to respond to my own inquiry:
I also left out that my php version was:  8.5.0b3

I just reverted to php 8.4.13

Roundcube works once again.
Very odd. I will post these findings in the FreeBSD forum

besides that 8.5.0 final is out and it's a bad idea to jump on new major releases it's as simple as things can be - that function now exists native

bad coding style let function names start with array_
rc_array_first or in my case rh_array_first would prevent that

https://www.php.net/manual/en/function.array-first.php
(PHP 8 >= 8.5.0)


_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to