Issue Details (XML | Word | Printable)

Key: MODX-290
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Olivier Deland
Reporter: James Ehly
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
MODx CMF

MODx Doesn't work on PHP 4.1.2

Created: 26/Aug/08 05:59 PM   Updated: 24/Sep/08 11:19 AM
Component/s: Core Distribution
Affects Version/s: 0.9.6.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Linux
Apache 1.3.20
PHP 4.1.2
mySQL 3.23.39


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Olivier Deland added a comment - 24/Sep/08 10:42 AM - edited
Thanks for pointing out, I raised the minimum requirements. I didn't find any occurences of mysql_connect() that used the fourth parameter (newlink). I found 2 occurences of floatval(), one in tinymce's plugin "spellchecker" and the other in manager/media/ImageEditor.

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.