Edit report at https://bugs.php.net/bug.php?id=63957&edit=1
ID: 63957 Comment by: lunter2 at gmail dot com Reported by: bugzilla77 at gmail dot com Summary: REQUEST_TIME_FLOAT too high Status: Wont fix Type: Bug Package: *Web Server problem Operating System: win32, apache module PHP Version: 5.5.0alpha2 Block user comment: N Private report: N New Comment: I can confirm this problem introduced in PHP 5.5 <?=microtime(true)-$_SERVER['REQUEST_TIME_FLOAT']?> Max difference observed from is -1200ms ! Previous Comments: ------------------------------------------------------------------------ [2013-01-19 19:39:36] bugzilla77 at gmail dot com Test script (fixed): -------------------- <?=microtime(true)-$_SERVER['REQUEST_TIME_FLOAT']?> but problem still the same ------------------------------------------------------------------------ [2013-01-19 19:34:59] bugzilla77 at gmail dot com Maybe PHP should set the $_SERVER['REQUEST_TIME_FLOAT'] value to MIN of apr_time_as_msec() , microtime(true) ??????? ------------------------------------------------------------------------ [2013-01-14 01:40:33] ahar...@php.net I can't reproduce this very reliably on either branch, so I don't think it's version specific as such. Changing $_SERVER['REQUEST_TIME_FLOAT'] to be microtime(true) on startup misses the point of what the server variable represents: it's what the Web server believes the request time to be, not when the PHP interpreter was invoked. If you want microtime(true), then set a variable to that at the top of your script. ------------------------------------------------------------------------ [2013-01-11 09:23:27] bugzilla77 at gmail dot com Why this problem is not found in PHP 5.4? ------------------------------------------------------------------------ [2013-01-11 09:21:20] bugzilla77 at gmail dot com Currently $_SERVER['REQUEST_TIME_FLOAT'] is useless in determining the time of generating web pages. I think that PHP should setting $_SERVER['REQUEST_TIME_FLOAT'] = microtime(true) on PHP's request handling. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=63957 -- Edit this bug report at https://bugs.php.net/bug.php?id=63957&edit=1