note 95094 rejected from function.spl-object-hash by danbrown

From: Date: Mon, 14 Dec 2009 16:01:43 +0000
Subject: note 95094 rejected from function.spl-object-hash by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163943@lists.php.net to get a copy of this message
Note Submitter: randallgirard at hotmail dot com ---- I'm having the same problem, although even more severe! ALL of my hashes are coming out the same: <?php class test { } $test = new test(); $var = new stdClass(); var_dump(spl_object_hash(new test())); var_dump(spl_object_hash($var), spl_object_hash(new stdClass())); hola(); function hola() { $var = new stdClass(); var_dump(spl_object_hash($var), spl_object_hash(new stdClass())); } /* Heres the output I got on one attempt string(32) "0000000075846c90000000001500e0f0" string(32) "0000000075846c91000000001500e0f0" string(32) "0000000075846c90000000001500e0f0" string(32) "0000000075846c90000000001500e0f0" string(32) "0000000075846c97000000001500e0f0" */ ?> I highly doubt this is expected behavior! I'm running php 5.3.0, maybe this is fixed in 5.3.1? Or perhaps a bug submission is needed?

« previous php.notes (#163943) next »