php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55735 problem: date + PHP5.4 SERVER['REQUEST_TIME']
Submitted: 2011-09-20 08:36 UTC Modified: 2011-09-20 15:09 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: bugzilla33 at gmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.4.0beta1 OS: All
Private report: No CVE-ID: None
 [2011-09-20 08:36 UTC] bugzilla33 at gmail dot com
Description:
------------
date + PHP5.4 version of SERVER['REQUEST_TIME'] problem


Test script:
---------------
<?=date('u',$_SERVER['REQUEST_TIME'])?>


Expected result:
----------------
Example: 423000


Actual result:
--------------
000000


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-20 08:37 UTC] bugzilla33 at gmail dot com
Derick (derick@php.net) remember!

SERVER['REQUEST_TIME'] includes microseconds in PHP 5.4

news.txt:
- Changed $_SERVER['REQUEST_TIME'] to include microsecond precision. (Ilia)
 [2011-09-20 15:09 UTC] bjori@php.net
-Status: Open +Status: Bogus
 [2011-09-20 15:09 UTC] bjori@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

date() accepts integers, not floats, as mentioned in the note on 
http://php.net/date
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC