xref: /PHP-8.0/ext/spl/tests/bug73471.phpt (revision 782352c5)
1--TEST--
2Bug #73471 PHP freezes with AppendIterator
3--FILE--
4<?php
5
6$iterator = new \AppendIterator();
7$events = new \ArrayIterator([1,2,3,4,5]);
8$events2 = new \ArrayIterator(['a', 'b', 'c']);
9$iterator->append($events);
10foreach($events as $event){}
11$iterator->append($events2);
12?>
13===DONE===
14--EXPECT--
15===DONE===
16