Edit report at https://bugs.php.net/bug.php?id=64146&edit=1

 ID:                 64146
 Updated by:         m...@php.net
 Reported by:        slusarz at curecanti dot org
 Summary:            serialize incorrectly saving objects when they are
                     cloned
 Status:             Verified
 Type:               Bug
 Package:            Variables related
 Operating System:   Linux
 PHP Version:        5.4.11
 Block user comment: N
 Private report:     N

 New Comment:

Using zend_objects_get_address() instead of the object handle fixes; but 
triggers 
bug #62836


Previous Comments:
------------------------------------------------------------------------
[2013-02-07 22:57:27] m...@php.net

The following patch has been added/updated:

Patch Name: zend_objects_get_address
Revision:   1360277847
URL:        
https://bugs.php.net/patch-display.php?bug=64146&patch=zend_objects_get_address&revision=1360277847

------------------------------------------------------------------------
[2013-02-07 21:35:26] m...@php.net

Obviously a flaw in the way an object is identified in the engine/in the 
serializer.

Since the cloned objects only live for the time of serialization, both have the 
same object handle and will be identified as the *same*. 

Not sure why unserialize barfs on it, though.

------------------------------------------------------------------------
[2013-02-07 19:37:35] ni...@php.net

@slusarz: Github changed the Gist URLs to include the owner's name too. I guess 
they didn't consider users having number-names while doing that ^^

------------------------------------------------------------------------
[2013-02-07 17:18:06] slusarz at curecanti dot org

Strange... Since that is the link github provides when you click on "share".

Anyway, try this instead:

https://gist.github.com/slusarz/4709613

------------------------------------------------------------------------
[2013-02-07 16:05:15] larue...@php.net

the link says: 4709613 hasn't created any public gists yet.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=64146


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64146&edit=1

Reply via email to