ZF-10705: Unable to use with php 5.1.6-27.el5
Description
Fatal error: Call to undefined function spl_object_hash()..
This because spl_object_hash is supported on 5.2 +.
My web server is using 5.1.6-27. It appears difficult to get the server upgraded. Can you suggest a simple way of getting around this. I am unable to deploy my application.
Comments
Posted by Dennis Winter (denniswinter) on 2010-11-18T05:37:55.000+0000
That's why Zend Framework requires PHP 5.2.4+ to work correctly.
See here: http://framework.zend.com/manual/en/…
Maybe, it's possible for you to use PHP with CGI. http://php.net/manual/en/security.cgi-bin.php.
Please ask on this Issue on IRC or the mailing list.
This issue does not affect the Zend Framework as is.
Posted by Ryan Mauger (bittarman) on 2010-11-18T05:50:30.000+0000
Closing as not an issue.
The minimal requirements for Zend Framework are detailed here http://framework.zend.com/manual/en/…
Please submit support requests to the fw-general mailing list, or in #zftalk on freenode IRC
Posted by Kieran (tigerwolf) on 2011-07-20T08:21:02.000+0000
You can use this work around:
if (!function_exists('spl_object_hash')) { /** * Returns the hash of the unique identifier for the object. * * @param object $object * @author Andreas Rein * @return string */ function spl_object_hash($object) { if (is_object($object)) { return md5((string)$object); } trigger_error(FUNCTION . "() expects parameter 1 to be object", E_USER_WARNING); return null; } }