com php-src: fixed the test: ext/standard/tests/bug6437 0_var1.phpt

From: Date: Mon, 11 Mar 2013 15:14:39 +0000
Subject: com php-src: fixed the test: ext/standard/tests/bug6437 0_var1.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-71436@lists.php.net to get a copy of this message
Commit: 278c4097c61ff258525bb11c680ffc8dce22fcaa Author: Anatol Belski <ab@php.net> Mon, 11 Mar 2013 16:14:39 +0100 Parents: 8aaa09636a3efee7d6e92103dad1ae2c1d137e72 Branches: PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=278c4097c61ff258525bb11c680ffc8dce22fcaa Log: fixed the test Changed paths: M ext/standard/tests/bug64370_var1.phpt Diff: diff --git a/ext/standard/tests/bug64370_var1.phpt b/ext/standard/tests/bug64370_var1.phpt index 3f25f53..aca46a5 100644 --- a/ext/standard/tests/bug64370_var1..phpt +++ b/ext/standard/tests/bug64370_var1.phpt @@ -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===

« previous php.cvs (#71436) next »