Commit bfaf6470 authored by Dries's avatar Dries

- Patch #1209470 by Damien Tournoud: Fixed REQUEST_TIME is a float with microseconds on PHP 5.4.

parent f80cf81d
......@@ -192,8 +192,11 @@
/**
* For convenience, define a short form of the request time global.
*
* REQUEST_TIME is a float with microseconds since PHP 5.4.0, but float
* timestamps confuses most of the PHP functions (including date_create()).
*/
define('REQUEST_TIME', $_SERVER['REQUEST_TIME']);
define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME']);
/**
* Flag for drupal_set_title(); text is not sanitized, so run check_plain().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment