|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 23:01:24 2020 UTC