google-code-export / zfdebug

Automatically exported from code.google.com/p/zfdebug
Other
1 stars 1 forks source link

ArrayObject::ksort not available in PHP 5.1.6 (Red hat version) #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using Redhat enterprise linux 4 the PHP version is locked to PHP 5.1.6.

It seems that ArrayObject::ksort is not implemented in that version [1] but
the Registry Plugin use it.

The bug is in ZFDebug_Controller_Plugin_Debug_Plugin_Registry::getPanel,
adding a test like method_exists($this->_registry, 'ksort') solves the problem.

[1] http://php.net/manual/en/arrayobject.ksort.php says that the minimal
version is 5.1.0 but it doesn't seems to be true

Original issue reported on code.google.com by ecoli...@gmail.com on 15 Dec 2009 at 1:19