From b1b98e08d0ad4bbbb213c002188ffa47075a8b0d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 29 Apr 2020 10:12:53 +0200 Subject: Make 045.phpt busy wait The timeout is only real-time based on Windows. Make this use a busy wait loop instead. If hard_timeout is broken, this will fail with a run-tests enforced timeout instead. --- tests/lang/045.phpt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/lang/045.phpt b/tests/lang/045.phpt index 44fb801410..e5299ae222 100644 --- a/tests/lang/045.phpt +++ b/tests/lang/045.phpt @@ -13,13 +13,7 @@ set_time_limit(1); register_shutdown_function("plop"); function plop() { - $ts = time(); - while(true) { - if ((time()-$ts) > 2) { - echo "Failed!"; - break; - } - } + while (true); } plop(); ?> -- cgit v1.2.1