diff options
Diffstat (limited to 'tests/basic/timeout_variation_9.phpt')
| -rw-r--r-- | tests/basic/timeout_variation_9.phpt | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/tests/basic/timeout_variation_9.phpt b/tests/basic/timeout_variation_9.phpt index ffe4553e49..e59ae242dc 100644 --- a/tests/basic/timeout_variation_9.phpt +++ b/tests/basic/timeout_variation_9.phpt @@ -2,28 +2,20 @@ Timeout within shutdown function --SKIPIF-- <?php - if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); +if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); +if (PHP_OS_FAMILY !== "Windows") die("skip Windows only test"); ?> +--XFAIL-- +Missing timeout check in call_user_function --FILE-- <?php -include __DIR__ . DIRECTORY_SEPARATOR . "timeout_config.inc"; +set_time_limit(1); +register_shutdown_function("sleep", 1); +register_shutdown_function("sleep", 1); -set_time_limit($t); - -function f() -{ - echo "call"; - $startTime = microtime(true); - busy_wait(5); - $diff = microtime(true) - $startTime; - echo "\ntime spent waiting: $diff\n"; -} - -register_shutdown_function("f"); exit(0); ?> never reached here --EXPECTF-- -call -Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d +Fatal error: Maximum execution time of 1 second exceeded in %s on line %d |
