diff options
author | Dries <dries@buytaert.net> | 2011-11-22 20:13:16 -0500 |
---|---|---|
committer | Dries <dries@buytaert.net> | 2011-11-22 20:13:16 -0500 |
commit | 7530f8bf403c0fef9827f23dd7977405877dfed7 (patch) | |
tree | 0cb74b1d54ba58d98b33549b6aa5730307612c09 /includes | |
parent | 55eebca91306ab0e1885a9f9c2487a6e6c1ef7f2 (diff) | |
download | brdo-7530f8bf403c0fef9827f23dd7977405877dfed7.tar.gz brdo-7530f8bf403c0fef9827f23dd7977405877dfed7.tar.bz2 |
- Patch #1289208 by minorOffense, skottler, rocket_nova: REQUEST_TIME documentation is misleading.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 0a18d22bd..eb5ccbd88 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -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']); |