mirror of
https://github.com/php/php-src.git
synced 2024-10-03 15:56:11 +00:00
17 lines
214 B
Plaintext
17 lines
214 B
Plaintext
|
--TEST--
|
||
|
LimitIterator: do not seek if not needed
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$it = new ArrayIterator(array());
|
||
|
|
||
|
$lit = new LimitIterator($it, 0, 5);
|
||
|
|
||
|
foreach ($lit as $v) {
|
||
|
echo $v;
|
||
|
}
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
===DONE===
|