1--TEST--
2Timeout within call_user_func
3--SKIPIF--
4<?php
5	if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6?>
7--FILE--
8<?php
9
10include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc";
11
12set_time_limit($t);
13
14function hello ($t) {
15	echo "call", PHP_EOL;
16	busy_wait($t*2);
17}
18
19call_user_func('hello', $t);
20
21?>
22never reached here
23--EXPECTF--
24call
25
26Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d
27