php-src/Zend/tests/vm_stack_with_arg_extend.phpt
Bob Weinand 7adc0ae631 Fix potential writes into wrong memory, ensure vm_stack integrity
Fixes also a segfault on stack frames > 1 << 18 bytes
Stack frames, when reallocated, need to be marked as top frame of current stack page
2015-06-20 18:29:09 +02:00

18 lines
244 B
PHP

--TEST--
Ensure valid vm_stack even when it needed to be copied to a new page
--FILE--
<?php
function f(...$args) {
var_dump(count($args));
}
(function(){
$a = array_fill(0, 1024, true);
f(...$a);
yield;
})()->valid();
?>
--EXPECT--
1024