#3464 - Major incompatibility with PHP 5.1 & PHP 5.2

Identifier #3464
Issue type Feature request or suggestion
Title Major incompatibility with PHP 5.1 & PHP 5.2
Status Completed
Handling member Chris Graham
Addon core
Description Unfortunately a bug came in with the latest 2 patch releases, causing incompatibility with PHP 5.1 & PHP 5.2, which we do support.

It's because I did not realise that in older PHP versions, for *some* PHP functions, passing extra parameters not supported in that PHP version will cause an error (usually they are just ignored).
This caused an error with an optimisation made for use of the clearstatcache, making use of a parameter introduced in PHP 5.3.

Attached is a fix for sources/files.php. Just upload this file after upgrading and it should be fine.
Steps to reproduce

Additional information These PHP versions are not actually supported by the PHP developers anymore, with the minimum supported version being PHP 5.6.
So you should look to upgrade PHP anyway.
That's not an excuse for the bug, just an observation worth adding.
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated