php-src/Zend/tests/vm_stack_with_arg_extend.phpt
2015-06-20 18:59:47 +02:00

18 lines
249 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--
int(1024)