Bug #67989 [Opn]: object_spl_hash give to identical values

From: Date: Tue, 09 Sep 2014 19:52:11 +0000
Subject: Bug #67989 [Opn]: object_spl_hash give to identical values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187478@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67989&edit=1 ID: 67989 User updated by: dipsik at gmail dot com Reported by: dipsik at gmail dot com Summary: object_spl_hash give to identical values Status: Open Type: Bug Package: hash related Operating System: windows 7 PHP Version: 5.5.16 Block user comment: N Private report: N New Comment: I create new object "Bar" (not Customer) -- I mean "not Foo", Previous Comments: ------------------------------------------------------------------------ [2014-09-09 19:50:45] dipsik at gmail dot com Description: ------------ Version tested with 5.4, 5.5.13, 5.5.16 I use symfony and doctrine. In sometime doctrine creates hash map array with spl_object_hash for proxy object "Foo" Then, there is my buiseness logic, and in sometime I create new object "Bar" (not Customer), which spl_object_hash is in doctrine hash array. I marked that, when my object "Bar" cant persist in my database, because doctrine find hash from other object "Foo" and think object is managed. I noticed, that any object created before "Bar" become with the same object hash, and Bar has different hash. So, only order of init objects are influence to object hash. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67989&edit=1

« previous php.bugs (#187478) next »