mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
ac0853eb26
Closes GH-5092
16 lines
517 B
PHP
16 lines
517 B
PHP
--TEST--
|
|
Bug #61273 (call_user_func_array with more than 16333 arguments leaks / crashes)
|
|
--FILE--
|
|
<?php
|
|
/**
|
|
* for 5.3 #define ZEND_VM_STACK_PAGE_SIZE ((64 * 1024) - 64)
|
|
* for 5.4 #define ZEND_VM_STACK_PAGE_SIZE ((16 * 1024) - 16)
|
|
* we should trick EG(argument_stack) into growing
|
|
*/
|
|
$args = array_fill(0, 64 * 1024 - 64, 0);
|
|
call_user_func_array(function(&$a) {}, $args);
|
|
echo strval("okey");
|
|
--EXPECTF--
|
|
Warning: {closure}() expects argument #1 ($a) to be passed by reference, value given in %s on line %d
|
|
okey
|