2015-03-16 18:01:23 +00:00
|
|
|
--TEST--
|
|
|
|
Timeout within function
|
2015-03-16 20:55:40 +00:00
|
|
|
--SKIPIF--
|
2018-09-16 17:16:42 +00:00
|
|
|
<?php
|
2019-12-05 08:13:57 +00:00
|
|
|
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
|
|
|
if (PHP_OS_FAMILY !== "Windows") die("skip Windows only test");
|
2015-03-16 20:55:40 +00:00
|
|
|
?>
|
2015-03-16 18:01:23 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
2019-12-05 08:13:57 +00:00
|
|
|
set_time_limit(1);
|
2015-03-16 18:01:23 +00:00
|
|
|
|
2019-12-05 08:13:57 +00:00
|
|
|
sleep(1);
|
|
|
|
sleep(1);
|
2015-03-16 18:01:23 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
never reached here
|
|
|
|
--EXPECTF--
|
2019-12-05 08:13:57 +00:00
|
|
|
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
|