Annotation of embedaddon/php/ext/standard/tests/general_functions/bug35229.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #35229 (call_user_func() crashes when argument stack is nearly full)
3: --FILE--
4: <?php
5: class test2 {
6: static function use_stack() {
7: echo "OK\n";
8: }
9: }
10:
11: function __autoload($class)
12: {
13: eval('class test1 extends test2 {}');
14:
15: test1::use_stack(
16: 1,2,3,4,5,6,7,8,9,10,
17: 11,12,13,14,15,16,17,18,19,20,
18: 21,22,23,24,25,26,27,28,29,30
19: );
20: }
21:
22: call_user_func(array('test1', 'use_stack'),
23: 1,2,3,4,5,6,7,8,9,10,
24: 11,12,13,14,15,16,17,18,19,20,
25: 21,22,23,24,25,26,27,28,29,30
26: );
27: ?>
28: --EXPECT--
29: OK
30: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>