Bug #64146 [Ver]: serialize incorrectly saving objects when they are cloned
| From: | mike@php.net | Date: | Thu, 07 Feb 2013 22:58:23 +0000 |
| Subject: | Bug #64146 [Ver]: serialize incorrectly saving objects when they are cloned | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176527@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64146&edit=1
ID: 64146
Updated by: mike@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] mike@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] mike@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] nikic@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] laruence@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