1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 04:32:19 +02:00
Files
archived-php-src/ext/spl/tests/bug74519.phpt
2018-10-14 19:45:12 +02:00

24 lines
324 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===