While trying to install MODx 9.6.1sp2 on an ancient version of PHP 4.1.2 I encountered problems related to functions that introduce parameters in PHP 4.2.0 and above. Functions encountered are mysql_connect (Added the new_link parameter in 4.2.0) and floatval (introduced in php 4.2.0). During installation I got the message:
—
Security notice
While MODx will work on your PHP version, usage of MODx on this version is not recommended. Your version of PHP is vulnerable to numerous security holes. Please upgrade to PHP version is 4.3.8 or higher, which patches these holes. It is recommended you upgrade to this version for the security of your own website.
—
I know that PHP should be updated on this server for security reasons, but I think the issue is that MODx doesn't work on PHP 4.1.2 since it uses functions updated or added in 4.2.0. This message and code should probably be changed to reflect that so users know not to try to install on a version this old.
James
We could simply modify those libraries, but it would most likely cause problems when updating them in the future.
Since even PHP 4.2.0 is old (2002/04/20), I guess it's safe to raise the minimum requirements.