1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/spl/tests/bug74519.phpt
2020-02-03 22:52:20 +01:00

22 lines
308 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();
}
?>
--EXPECT--
2
3
4
5