Edit report at https://bugs.php.net/bug.php?id=60919&edit=1
ID: 60919
Updated by: rasmus@php.net
Reported by: thekid@php.net
Summary: __wakeup is not called
-Status: Open
+Status: Critical
Type: Bug
Package: Scripting Engine problem
Operating System: (Any)
PHP Version: 5.4.0RC6
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2012-01-28 20:58:08] thekid@php.net
Description:
------------
In 5.4.0RC6, a __wakeup() method is no longer called during unserialization.
Test script:
---------------
$ php -r 'class A { function __sleep() { echo "SLEEP\n"; return array(); } function
__wakeup() { echo "WAKEUP"; }} $a= unserialize(serialize(new A()));'
Expected result:
----------------
SLEEP
WAKEUP
object(A)#1 (0) {
}
Actual result:
--------------
SLEEP
object(A)#1 (0) {
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60919&edit=1