xref: /PHP-7.3/Zend/tests/bug72767.phpt (revision 807e8193)
1--TEST--
2Bug #72767: PHP Segfaults when trying to expand an infinite operator
3--FILE--
4<?php
5
6function test() {}
7$iterator = new LimitIterator(
8    new InfiniteIterator(new ArrayIterator([42])),
9    0, 17000
10);
11test(...$iterator);
12
13?>
14===DONE===
15--EXPECT--
16===DONE===
17