]> granicus.if.org Git - php/commitdiff
reduce memory usage
authorXinchen Hui <laruence@php.net>
Mon, 12 Mar 2012 14:52:02 +0000 (14:52 +0000)
committerXinchen Hui <laruence@php.net>
Mon, 12 Mar 2012 14:52:02 +0000 (14:52 +0000)
Zend/tests/bug61273.phpt

index 9d78b2731770efca1d4019cd5a9d9e6a19b822c2..aee35c6f4f5ee0645362b3976c3f79ae3278a897 100644 (file)
@@ -7,7 +7,7 @@ Bug #61273 (call_user_func_array with more than 16333 arguments leaks / crashes)
  * 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, "*");
+$args = array_fill(0, 64 * 1024 - 64, 0);
 call_user_func_array(function(&$a) {}, $args);
 echo strval("okey");
 --EXPECTF--