ZF-10705: Unable to use with php 5.1.6-27.el5

Issue Type: Bug Created: 2010-11-18T05:30:06.000+0000 Last Updated: 2011-07-20T08:21:02.000+0000 Status: Resolved Fix version(s): Reporter: John Worthington (jhworth) Assignee: Dennis Winter (denniswinter) Tags: - Zend_Navigation

Related issues: Attachments:


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.


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:…

Maybe, it's possible for you to use PHP with CGI.

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…

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; } }

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.