#48387 [Opn->Asn]: ArrayObject and properties serialization
| From: | colder@php.net | Date: | Thu, 16 Jul 2009 01:08:05 +0000 |
| Subject: | #48387 [Opn->Asn]: ArrayObject and properties serialization | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139785@lists.php.net to get a copy of this message | ||
ID: 48387
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.2.9
-Assigned To:
+Assigned To: colder
Previous Comments:
------------------------------------------------------------------------
[2009-05-25 15:46:56] david at grudl dot com
Description:
------------
In PHP 5.2.x there are not serialized any public/protected/private
properies of ArrayObject descendants.
Reproduce code:
---------------
class Test extends ArrayObject
{
public $var;
}
$test = new Test;
$test->var = 'hello';
$dolly = unserialize(serialize($test));
echo $dolly->var;
Expected result:
----------------
-> hello
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48387&edit=1