summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72767.phpt
blob: 20b559b2a1a4b173c1b83ca496c26e2f610ed847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #72767: PHP Segfaults when trying to expand an infinite operator
--FILE--
<?php

function test() {}
$iterator = new LimitIterator(
    new InfiniteIterator(new ArrayIterator([42])),
    0, 17000
);
test(...$iterator);

?>
===DONE===
--EXPECT--
===DONE===