Bug #64370 [NEW]: microtime(true) corrupted
| From: | bugzilla77 at gmail dot com | Date: | Wed, 06 Mar 2013 15:45:36 +0000 |
| Subject: | Bug #64370 [NEW]: microtime(true) corrupted | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-177620@lists.php.net to get a copy of this message | ||
From: bugzilla77 at gmail dot com
Operating system: win 7 (32/64)
PHP version: 5.5.0alpha5
Package: Date/time related
Bug Type: Bug
Bug description:microtime(true) corrupted
Description:
------------
microtime(true) returns value less than time() (or $_SERVER['REQUEST_TIME']
or
$_SERVER['REQUEST_TIME_FLOAT'])
up to a DOZEN seconds!!!
live demo: http://pulsmedica.com.pl/microtime.php
win 7 32bit
apache 2.4.3 + php5apache2_4.dll
php 5.5a5 ts
Test script:
---------------
$_SERVER['REQUEST_TIME']: <?=$_SERVER['REQUEST_TIME']?><br/>
$_SERVER['REQUEST_TIME_FLOAT']:
<?=$_SERVER['REQUEST_TIME_FLOAT']?><br/>
time(): <?=time()?><br/>
microtime(true): <?=microtime(true)?><br/><br/>
PHP <?=PHP_VERSION?><br/>
created in <?=(microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000?> ms
Expected result:
----------------
PHP 5.4: never problems
Actual result:
--------------
PHP 5.5 live demo: http://pulsmedica.com.pl/microtime.php
--
Edit bug report at https://bugs.php.net/bug.php?id=64370&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64370&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64370&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64370&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64370&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64370&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64370&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64370&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64370&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64370&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64370&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64370&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64370&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64370&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64370&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64370&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64370&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64370&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64370&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64370&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64370&r=mysqlcfg