mirror of
https://github.com/php/php-src.git
synced 2026-04-02 13:43:02 +02:00
MFH: fix gettimeofday() tests to not fail if the same time is
returned by successive calls.
This commit is contained in:
@@ -17,7 +17,7 @@ set_time_limit(0);
|
||||
|
||||
for ($i=1;$i<=100000;$i++) {
|
||||
list($micro,$time)=explode(" ",microtime());
|
||||
if ($time > $last_t || ($time == $last_t && $micro > $last_m)) {
|
||||
if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) {
|
||||
$passed++;
|
||||
} else if ($failed++ <=10) {
|
||||
$result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";
|
||||
|
||||
Reference in New Issue
Block a user