summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug49723.phpt
blob: 1557cbc15d4ccd284311dd7321571b1f91c71341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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===