mirror of
https://github.com/php/php-src.git
synced 2026-04-02 05:32:28 +02:00
fixed the test
This commit is contained in:
@@ -6,7 +6,9 @@ echo "\$_SERVER['REQUEST_TIME']: {$_SERVER['REQUEST_TIME']}\n";
|
||||
echo "\$_SERVER['REQUEST_TIME_FLOAT']: {$_SERVER['REQUEST_TIME_FLOAT']}\n";
|
||||
echo "time(): " . time() . "\n";
|
||||
echo "microtime(true): " . microtime(true) . "\n";
|
||||
echo "created in " . ((microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000) . " ms\n";
|
||||
$d = (microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000;
|
||||
echo "created in $d ms\n";
|
||||
echo ((bool)($d >= 0)) . "\n";
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
@@ -15,4 +17,5 @@ $_SERVER['REQUEST_TIME_FLOAT']: %f
|
||||
time(): %d
|
||||
microtime(true): %f
|
||||
created in %f ms
|
||||
1
|
||||
===DONE===
|
||||
|
||||
Reference in New Issue
Block a user