Bug #48387 [Asn->Wfx]: ArrayObject and properties serialization

From: Date: Tue, 18 May 2010 14:11:20 +0000
Subject: Bug #48387 [Asn->Wfx]: ArrayObject and properties serialization
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150563@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=48387&edit=1 ID: 48387 Updated by: mike@php.net Reported by: david at grudl dot com Summary: ArrayObject and properties serialization -Status: Assigned +Status: Wont fix Type: Bug Package: SPL related Operating System: * PHP Version: 5.2.9 Assigned To: colder Previous Comments: ------------------------------------------------------------------------ [2010-04-18 00:17:31] jhominal at gmail dot com I believe I had the same problem on PHP 5.2.13, on Debian Lenny (package provided by dotdeb) ------------------------------------------------------------------------ [2010-02-28 10:55:10] seld@php.net For what it's worth, the reproduce code works perfectly fine with php5.3.0 ------------------------------------------------------------------------ [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/bug.php?id=48387&edit=1

« previous php.bugs (#150563) next »