Firefox PHP

Phorum code should be fixed for newer versions of PHP

Posted by Ulf Dunkel 
Phorum code should be fixed for newer versions of PHP
October 14, 2024 04:15AM
Today I ran into an error which says "Array and string offset access syntax with curly braces is deprecated".

I had to fix at least /include/upload_functions.php, line 107 from

Language: PHP
$last = strtolower($val{strlen($val)-1});

to

Language: PHP
$last = strtolower($val[strlen($val)-1]);

I guess there's much more in the code to be fixed for newer PHP releases.

Regards, Ulf Dunkel
Sorry, only registered users may post in this forum.

Click here to login