1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/ext/spl/tests/bug74519.phpt
2018-02-08 10:15:09 +01:00

24 lines
325 B
PHP

--TEST--
Bug #74519 strange behavior of AppendIterator
--FILE--
<?php
$iterator = new \AppendIterator();
$events = new \ArrayIterator([1,2,3,4,5]);
$iterator->append($events);
$events->next();
while($iterator->valid()) {
echo $iterator->current(), "\n";
$iterator->next();
}
?>
===DONE===
--EXPECT--
2
3
4
5
===DONE===