![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: LimitIterator: do not seek if not needed ! 3: --FILE-- ! 4: <?php ! 5: ! 6: $it = new ArrayIterator(array()); ! 7: ! 8: $lit = new LimitIterator($it, 0, 5); ! 9: ! 10: foreach ($lit as $v) { ! 11: echo $v; ! 12: } ! 13: ?> ! 14: ===DONE=== ! 15: --EXPECT-- ! 16: ===DONE===