|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67369 ArrayObject serialization drops the iterator class
Submitted: 2014-06-01 19:26 UTC Modified: 2020-04-15 14:59 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: kmiller68 at gmail dot com Assigned:
Status: Closed Package: SPL related
PHP Version: 5.5.13 OS: OSX/Unix
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: kmiller68 at gmail dot com
New email:
PHP Version: OS:


 [2014-06-01 19:26 UTC] kmiller68 at gmail dot com
ArrayObject does not appear to be serializing the classname of the iterator. When an ArrayObject is deserialized the iterator is always set to the default ArrayIterator class.

Test script:

class MyIterator extends ArrayIterator {}

$a = new ArrayObject();


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-23 17:15 UTC]
-Status: Open +Status: Verified
 [2015-08-23 17:15 UTC]
Confirmed: <>.
 [2020-04-15 14:59 UTC]
-Summary: serialization drops the iterator class. +Summary: ArrayObject serialization drops the iterator class
 [2020-04-20 09:57 UTC]
Automatic comment on behalf of
Log: Fix bug #67369 ArrayObject serializatino drops the iterator class
 [2020-04-20 09:57 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 28 16:01:23 2021 UTC