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
11function __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
22call_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--
29OK
30OK
31