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 03: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

[code="php"]$last = strtolower($val{strlen($val)-1});[/code]

to

[code="php"]$last = strtolower($val[strlen($val)-1]);[/code]

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

Regards, Ulf Dunkel
Re: Phorum code should be fixed for newer versions of PHP
June 25, 2026 08:47AM
Dear all,

Can you help on GitHub?

I have created a new ticket to have a new team, to have PHP support improvements, etc.:
- [github.com]

There are two PRs:
- [github.com]
- [github.com]

captcha in GitHub tickets:
- [github.com]

Thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login