Bug #64146 [Csd->ReO]: serialize incorrectly saving objects when they are cloned

From: Date: Tue, 14 Jul 2015 20:40:31 +0000
Subject: Bug #64146 [Csd->ReO]: serialize incorrectly saving objects when they are cloned
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194445@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: cmb@php.net Reported by: slusarz at curecanti dot org Summary: serialize incorrectly saving objects when they are cloned -Status: Closed +Status: Re-Opened Type: Bug Package: Variables related -Operating System: Linux +Operating System: * -PHP Version: 5.4.11 +PHP Version: 5.6.11 Assigned To: mike Block user comment: N Private report: N New Comment: It appears that this bug is not really fixed. There are many failing tests reported for PHP 5[1]. Apparently there are no problems with PHP 7. It seems to me that indeed the only way to fix this issue reliably would be to detain the objects from being freed during the serialization, what is done in PHP 7. However, the same technique can't be used in PHP 5 for BC reasons. [1] <https://qa.php.net/reports/viewreports.php?version=5.5.5&test=%2Fext%2Fstandard%2Ftests%2Fserialize%2Fbug64146.phpt> Previous Comments: ------------------------------------------------------------------------ [2015-05-25 01:27:29] bugs at tmarques dot com Related To: Bug #69693 ------------------------------------------------------------------------ [2015-05-25 01:27:29] bugs at tmarques dot com Related To: Bug #69693 ------------------------------------------------------------------------ [2014-10-08 19:40:35] slusarz at curecanti dot org Those most recent commit links seem broken. For future reference, this appears to be the patch that fixes: http://git.php.net/?p=php-src.git;a=commit;h=8973390541faaadfdfc0f838421f037060188e5e ------------------------------------------------------------------------ [2014-10-07 23:28:06] stas@php.net Automatic comment on behalf of mike Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=8973390541faaadfdfc0f838421f037060188e5e Log: fix bug #64146 (serialize incorrectly saving objects when they are cloned) ------------------------------------------------------------------------ [2014-10-07 23:17:00] stas@php.net Automatic comment on behalf of mike Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=8973390541faaadfdfc0f838421f037060188e5e Log: fix bug #64146 (serialize incorrectly saving objects when they are cloned) ------------------------------------------------------------------------ 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

« previous php.bugs (#194445) next »