mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +08:00
17 lines
268 B
Plaintext
17 lines
268 B
Plaintext
|
--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===
|