Bug #79030 [NEW]: $_SERVER['REQUEST_TIME_FLOAT'] and microtime(TRUE) combination problem

From: Date: Wed, 25 Dec 2019 06:56:21 +0000
Subject: Bug #79030 [NEW]: $_SERVER['REQUEST_TIME_FLOAT'] and microtime(TRUE) combination problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224525@lists.php.net to get a copy of this message
From: herbert at groot dot jebbink dot nl Operating system: ChromeOS / Crostini / Debian 10 PHP version: 7.4.1 Package: *General Issues Bug Type: Bug Bug description:$_SERVER['REQUEST_TIME_FLOAT'] and microtime(TRUE) combination problem Description: ------------ Sometimes the $_SERVER['REQUEST_TIME_FLOAT'] and microtime(TRUE) combination gives strange results. Below example gives about 1 in 10 times a negative result. Test script: --------------- <?php $script1 = microtime(TRUE); $script2 = file_get_contents('http://localhost/script2.php'); echo $script2 - $script1; ?> <?php echo $_SERVER['REQUEST_TIME_FLOAT']; ?> Expected result: ---------------- 0.00038409233093262 Actual result: -------------- -0.00039100646972656 -- Edit bug report at https://bugs.php.net/bug.php?id=79030&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79030&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79030&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79030&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79030&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79030&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79030&r=support Expected behavior: https://bugs.php.net/fix.php?id=79030&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79030&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79030&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79030&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79030&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79030&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79030&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79030&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79030&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79030&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79030&r=mysqlcfg

« previous php.bugs (#224525) next »