Skip to content

Commit

Permalink
- Patch #1289208 by minorOffense, skottler, rocket_nova: REQUEST_TIME…
Browse files Browse the repository at this point in the history
… documentation is misleading.
  • Loading branch information
dbuytaert committed Nov 23, 2011
1 parent 55eebca commit 7530f8b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions includes/bootstrap.inc
Expand Up @@ -191,10 +191,14 @@ define('LANGUAGE_LTR', 0);
define('LANGUAGE_RTL', 1);

/**
* For convenience, define a short form of the request time global.
* Time of the current request in seconds elapsed since the Unix Epoch.
*
* REQUEST_TIME is a float with microseconds since PHP 5.4.0, but float
* timestamps confuses most of the PHP functions (including date_create()).
* This differs from $_SERVER['REQUEST_TIME'], which is stored as a float
* since PHP 5.4.0. Float timestamps confuse most PHP functions
* (including date_create()).
*
* @see http://php.net/manual/reserved.variables.server.php
* @see http://php.net/manual/function.time.php
*/
define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME']);

Expand Down

0 comments on commit 7530f8b

Please sign in to comment.