com php-src: Ensure timeout tests wait for the entire specified duration: tests/basic/timeout_config.inc

From: Date: Tue, 29 Sep 2015 11:04:05 +0000
Subject: com php-src: Ensure timeout tests wait for the entire specified duration: tests/basic/timeout_config.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89210@lists.php.net to get a copy of this message
Commit: 24bb5698af003650492a2938b0ec0de0dca79758 Author: Steven Hilder <steven.hilder@sevenpercent.solutions> Sun, 13 Sep 2015 10:06:23 +0000 Committer: Anatol Belski <ab@php.net> Tue, 29 Sep 2015 13:04:05 +0200 Parents: ca36b7bc1395b6daff56082d1c91229c3e77069a Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24bb5698af003650492a2938b0ec0de0dca79758 Log: Ensure timeout tests wait for the entire specified duration Changed paths: M tests/basic/timeout_config.inc Diff: diff --git a/tests/basic/timeout_config.inc b/tests/basic/timeout_config.inc index 18a00b2..7182080 100644 --- a/tests/basic/timeout_config.inc +++ b/tests/basic/timeout_config.inc @@ -4,8 +4,8 @@ $t = 3; function busy_wait($how_long) { - $until = time() + $how_long; + $until = microtime(TRUE) + $how_long; - while ($until > time()); + while ($until > microtime(TRUE)); }

« previous php.cvs (#89210) next »