Edit report at https://bugs.php.net/bug.php?id=64370&edit=1

 ID:                 64370
 Updated by:         paj...@php.net
 Reported by:        bugzilla77 at gmail dot com
 Summary:            microtime(true) corrupted
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            Date/time related
 Operating System:   win 7 (32/64)
 PHP Version:        5.5.0alpha5
-Assigned To:        
+Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

@a can you take a look please?


Previous Comments:
------------------------------------------------------------------------
[2013-03-06 15:45:36] bugzilla77 at gmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=64370&edit=1

Reply via email to