From: bela at up2you dot se Operating system: XP professional PHP version: 4.3.6 PHP Bug Type: Date/time related Bug description: microtime returns old system time
Description: ------------ microtime() is not affected after changing the system time. The bug is verified on IIS and PHP4isapi.dll. The only way to get right system time is to restart the IIS server. The example shows when changing system time from 23:48:13 to 23:38:13. Reproduce code: --------------- <?php header("Content-type: text/plain"); list($usec, $sec) = explode(" ", microtime()); print date("Y-m-d H:i:s", $sec) . "\r\n"; print date("Y-m-d H:i:s", time()); ?> Expected result: ---------------- 2004-05-17 23:38:13 2004-05-17 23:38:13 Actual result: -------------- 2004-05-17 23:48:13 2004-05-17 23:38:13 -- Edit bug report at http://bugs.php.net/?id=28425&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28425&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28425&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28425&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28425&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28425&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28425&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28425&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28425&r=support Expected behavior: http://bugs.php.net/fix.php?id=28425&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28425&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28425&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28425&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28425&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28425&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28425&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28425&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28425&r=float