php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55733 problem: date + new version of SERVER['REQUEST_TIME']
Submitted: 2011-09-20 07:39 UTC Modified: 2011-09-20 08:33 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugzilla33 at gmail dot com
New email:
PHP Version: OS:

 

 [2011-09-20 07:39 UTC] bugzilla33 at gmail dot com
Description:
------------
problem: date + new version of SERVER['REQUEST_TIME']

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

Expected result:
----------------
xxx000
:
423000
or
123000
or
234000
etc...

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-20 08:08 UTC] derick@php.net
-Status: Open +Status: Bogus
 [2011-09-20 08:08 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The SERVER['REQUEST_TIME'] doesn't include microseconds (it's an int) and does can't show anything else but "0000000" with date('u').
 [2011-09-20 08:33 UTC] bugzilla33 at gmail dot com
derick, are you asleep?

SERVER['REQUEST_TIME'] includes microseconds in PHP 5.4

news.txt:
- Changed $_SERVER['REQUEST_TIME'] to include microsecond precision. (Ilia)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 23:01:33 2025 UTC