|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48387 ArrayObject and properties serialization
Submitted: 2009-05-25 15:46 UTC Modified: 2010-05-18 16:11 UTC
Avg. Score:4.5 ± 0.5
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: david at grudl dot com Assigned: colder (profile)
Status: Wont fix Package: SPL related
PHP Version: 5.2.9 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: david at grudl dot com
New email:
PHP Version: OS:


 [2009-05-25 15:46 UTC] david at grudl dot com
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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-28 10:55 UTC]
For what it's worth, the reproduce code works perfectly fine with php5.3.0
 [2010-04-18 00:17 UTC] 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-05-18 16:11 UTC]
-Status: Assigned +Status: Wont fix
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 10:03:37 2022 UTC