mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
17 lines
214 B
PHP
17 lines
214 B
PHP
--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===
|