|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-06 13:46 UTC] pajoye@php.net
[2009-07-06 15:51 UTC] kim at burgestrand dot se
[2009-07-06 15:56 UTC] kim at burgestrand dot se
[2010-06-04 16:43 UTC] jan-phpbug at kantert dot net
[2010-11-14 14:19 UTC] felipe@php.net
[2012-05-11 01:55 UTC] simon at welsh dot co dot nz
[2013-11-19 13:14 UTC] arjen at react dot com
[2016-03-18 19:33 UTC] nikic@php.net
[2016-03-18 19:34 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 14:00:01 2025 UTC |
Description: ------------ After using seek() on an IteratorIterator containing an ArrayIterator the next() call results in a bus error. Also, the seek() method doesn?t seem to advance the key to the specified position on the inner iterator (unless issuing getInnerIterator()->seek(x) directly and calling getInnerIterator()->current()). Reproduce code: --------------- <?php $iiter = new IteratorIterator(new ArrayIterator(range(0, 5))); $iiter->rewind(); $iiter->seek(2); var_dump($iiter->current()); $iiter->next(); // bus error var_dump($iiter->current()); /* End of file */ Expected result: ---------------- int(2) int(3) Actual result: -------------- int(0)