|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67369 serialization drops the iterator class.
Submitted: 2014-06-01 19:26 UTC Modified: 2015-08-23 17:15 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: Verified Package: SPL related
PHP Version: 5.5.13 OS: OSX/Unix
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: <>.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC