note 95094 added to function.spl-object-hash
| From: | randallgirard at hotmail dot com | Date: | Sun, 13 Dec 2009 09:06:39 +0000 |
| Subject: | note 95094 added to function.spl-object-hash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163901@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 69.147.83.197
Probable Submitter: 76.167.60.11
----
Manual Page -- http://www.php.net/manual/en/function.spl-object-hash.php
Edit -- https://master.php.net/note/edit/95094
Del: integrated -- https://master.php.net/note/delete/95094/integrated
Del: useless -- https://master.php.net/note/delete/95094/useless
Del: bad code -- https://master.php.net/note/delete/95094/bad+code
Del: spam -- https://master.php.net/note/delete/95094/spam
Del: non-english -- https://master.php.net/note/delete/95094/non-english
Del: in docs -- https://master.php.net/note/delete/95094/in+docs
Del: other reasons-- https://master.php.net/note/delete/95094
Reject -- https://master.php.net/note/reject/95094
Search -- https://master.php.net/manage/user-notes.php