1--TEST-- 2Bug #35229 (call_user_func() crashes when argument stack is nearly full) 3--FILE-- 4<?php 5class test2 { 6 static function use_stack() { 7 echo "OK\n"; 8 } 9} 10 11spl_autoload_register(function ($class) { 12 eval('class test1 extends test2 {}'); 13 14 test1::use_stack( 15 1,2,3,4,5,6,7,8,9,10, 16 11,12,13,14,15,16,17,18,19,20, 17 21,22,23,24,25,26,27,28,29,30 18 ); 19}); 20 21call_user_func(array('test1', 'use_stack'), 22 1,2,3,4,5,6,7,8,9,10, 23 11,12,13,14,15,16,17,18,19,20, 24 21,22,23,24,25,26,27,28,29,30 25); 26?> 27--EXPECT-- 28OK 29OK 30