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

MongoDB administration tool for PHP built on a stripped-down version of the Vork high-performance framework
http://www.phpMoAdmin.com
GNU General Public License v3.0
187 stars 86 forks source link

Doesn't work with PHP 5.1.6 #6

Closed gmkavi closed 14 years ago

gmkavi commented 14 years ago

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.

MongoDB-Rox commented 14 years ago

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.