mirror of
https://github.com/php/php-src.git
synced 2024-09-27 12:57:26 +00:00
31 lines
516 B
Plaintext
31 lines
516 B
Plaintext
|
--TEST--
|
||
|
Bug #35229 (call_user_func() crashes when arguement_stack is nearly full)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class test2 {
|
||
|
static function use_stack() {
|
||
|
echo "OK\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function __autoload($class)
|
||
|
{
|
||
|
eval('class test1 extends test2 {}');
|
||
|
|
||
|
test1::use_stack(
|
||
|
1,2,3,4,5,6,7,8,9,10,
|
||
|
11,12,13,14,15,16,17,18,19,20,
|
||
|
21,22,23,24,25,26,27,28,29,30
|
||
|
);
|
||
|
}
|
||
|
|
||
|
call_user_func(array('test1', 'use_stack'),
|
||
|
1,2,3,4,5,6,7,8,9,10,
|
||
|
11,12,13,14,15,16,17,18,19,20,
|
||
|
21,22,23,24,25,26,27,28,29,30
|
||
|
);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
OK
|
||
|
OK
|