1--TEST--
2Timeout within array_walk
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 cb(&$i, $k, $p)
15{
16	busy_wait(1);
17}
18
19$a = array(1 => 1, 2 => 1, 3 => 1, 4 => 1, 5 => 1, 6 => 1, 7 => 1);
20array_walk($a, "cb", "junk");
21
22?>
23never reached here
24--EXPECTF--
25Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d
26