summaryrefslogtreecommitdiff
path: root/tests/basic/timeout_variation_5.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/timeout_variation_5.phpt')
-rw-r--r--tests/basic/timeout_variation_5.phpt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/basic/timeout_variation_5.phpt b/tests/basic/timeout_variation_5.phpt
index e4ccfffa58..38dde0d759 100644
--- a/tests/basic/timeout_variation_5.phpt
+++ b/tests/basic/timeout_variation_5.phpt
@@ -3,12 +3,14 @@ Timeout within function containing exteption
--FILE--
<?php
+include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc";
+
$t = 3;
set_time_limit($t);
function f($t) {
echo "call";
- sleep($t*2);
+ busy_sleep($t*2);
throw new Exception("never reached here");
}