MongoDB-Rox/phpMoAdmin-MongoDB-Admin-Tool-for-PHP

Doesn't work with PHP 5.1.6

Closed this issue · 1 comments

Contrary to the "works with any version of PHP5" in the docs, phpMoAdmin fails to work out of the box on PHP 5.1.6, which is the version those unfortunate enough to be running CentOS 5.5 are stuck with. There are a lot of warnings about the fourth argument on htmlentities(), which was added in PHP 5.2.3.

I laboriously upgraded up PHP 5.3.3 using backports from IUS, but this is not possible for all users.

Sorry about your troubles; it does work with 5.0.2+ but in PHP prior to 5.2.3 the $doubleEncode parameter is not available to htmlentities() so you will need to comment out the last parameter of the return clause (including the preceding comma) within the htmlentities() method of the "get" class - then all will work.

At the moment this is only documented in a comment within the code just above the line number shown in the error messages, thanks to your feedback it will be made more prominent.