Commit:    278c4097c61ff258525bb11c680ffc8dce22fcaa
Author:    Anatol Belski <a...@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===


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to