Bug #55801 [Fbk->Csd]: Behavior of unserialize has changed
| From: | mike@php.net | Date: | Wed, 19 Oct 2011 10:35:04 +0000 |
| Subject: | Bug #55801 [Fbk->Csd]: Behavior of unserialize has changed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164430@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55801&edit=1
ID: 55801
Updated by: mike@php.net
Reported by: mapi at pdepend dot org
Summary: Behavior of unserialize has changed
-Status: Feedback
+Status: Closed
Type: Bug
Package: Variables related
Operating System: Linux (Fedora 15)
PHP Version: 5.4.0beta1
Assigned To: mike
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-10-19 10:09:23] mike@php.net
Automatic comment from SVN on behalf of mike
Revision: http://svn.php.net/viewvc/?view=revision&revision=318210
Log: Fix Bug #55801 Behavior of unserialize has changed:
(un)serialize in __wakeup/__sleep now use clean var_hashes
------------------------------------------------------------------------
[2011-10-19 08:55:53] mapi at pdepend dot org
Hello Mike,
I just tested a patched version of "branches/PHP_5_4/" and "trunk/" with the
original implementation that uses serialize() and unserialize() within
__sleep()/__wakeup(). Everything works as expected and there are no NULL filled
arrays anymore.
Thank you very much for help
------------------------------------------------------------------------
[2011-10-19 08:15:02] mike@php.net
So? Running your original test script seems to work fine with this patch...
------------------------------------------------------------------------
[2011-10-13 16:21:18] mike@php.net
The following patch has been added/updated:
Patch Name: fix-serialize-in-sleep-and-wakeup
Revision: 1318522878
URL: https://bugs.php.net/patch-display.php?bug=55801&patch=fix-serialize-in-sleep-and-wakeup&revision=1318522878
------------------------------------------------------------------------
[2011-10-13 14:39:40] mike@php.net
Could you try attached patch, please?
------------------------------------------------------------------------
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=55801
--
Edit this bug report at https://bugs.php.net/bug.php?id=55801&edit=1