#48386 [Opn->Asn]: ArrayObject and __wakeup()
| From: | colder@php.net | Date: | Thu, 16 Jul 2009 01:07:57 +0000 |
| Subject: | #48386 [Opn->Asn]: ArrayObject and __wakeup() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139784@lists.php.net to get a copy of this message | ||
ID: 48386
Updated by: colder@php.net
Reported By: david at grudl dot com
-Status: Open
+Status: Assigned
Bug Type: SPL related
Operating System: *
PHP Version: 5.3CVS-2009-05-25 (snap)
-Assigned To:
+Assigned To: colder
Previous Comments:
------------------------------------------------------------------------
[2009-05-25 15:31:42] david at grudl dot com
Description:
------------
Unserialization of ArrayObject descendants doesn't call __wakeup in PHP
5.3.
Reproduce code:
---------------
class Test extends ArrayObject
{
public function __wakeup()
{
echo 'hey';
}
}
$test = new Test;
$dolly = unserialize(serialize($test));
Expected result:
----------------
-> hey
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48386&edit=1