diff options
Diffstat (limited to 'ext/spl/tests/bug49723.phpt')
-rw-r--r-- | ext/spl/tests/bug49723.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/spl/tests/bug49723.phpt b/ext/spl/tests/bug49723.phpt new file mode 100644 index 000000000..221e80661 --- /dev/null +++ b/ext/spl/tests/bug49723.phpt @@ -0,0 +1,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=== |