mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
807e81937b
The page size calculation did not account for the size of the stack header (or rather it did account for it, but in the wrong direction...)
17 lines
268 B
PHP
17 lines
268 B
PHP
--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===
|