|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-28 14:55 UTC] salathe@php.net
-Status: Open
+Status: Bogus
[2010-05-28 14:55 UTC] salathe@php.net
[2010-05-28 15:56 UTC] develop at jacobkiers dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ ArrayIterator::rewind() doesn't rewind to first element, but to second. Test script: --------------- <?php $i = new ArrayIterator(array(1,2,3,4,5,6)); $r = false; # To prevent looping infinitely. foreach($i as $j) { if ($j == 4 && $r == false) { $i->rewind(); $r = true; } echo $j.","; } Expected result: ---------------- 1,2,3,4,1,2,3,4,5,6, Actual result: -------------- 1,2,3,4,2,3,4,5,6,