aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/startup.php
diff options
context:
space:
mode:
authorYuriy Rusko <github@rusko.net>2011-06-15 00:50:12 -0400
committerYuriy Rusko <github@rusko.net>2011-06-15 00:50:12 -0400
commit4bb98fb0463d543f60201c3f8435ada3e0b070da (patch)
tree0c556843bf32c05d2efb020fcaf10aa53b9b4805 /phpBB/includes/startup.php
parentf8eb15471488fe5f84669a9abbc2fc3a705903de (diff)
downloadforums-4bb98fb0463d543f60201c3f8435ada3e0b070da.tar
forums-4bb98fb0463d543f60201c3f8435ada3e0b070da.tar.gz
forums-4bb98fb0463d543f60201c3f8435ada3e0b070da.tar.bz2
forums-4bb98fb0463d543f60201c3f8435ada3e0b070da.tar.xz
forums-4bb98fb0463d543f60201c3f8435ada3e0b070da.zip
[ticket/10218] Prevent startime from being overwritten by deregister_globals()
PHPBB3-10218
Diffstat (limited to 'phpBB/includes/startup.php')
-rw-r--r--phpBB/includes/startup.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php
index 2958277174..be46c17ba6 100644
--- a/phpBB/includes/startup.php
+++ b/phpBB/includes/startup.php
@@ -13,8 +13,6 @@ if (!defined('IN_PHPBB'))
{
exit;
}
-$starttime = explode(' ', microtime());
-$starttime = $starttime[1] + $starttime[0];
// Report all errors, except notices and deprecation messages
if (!defined('E_DEPRECATED'))
@@ -119,3 +117,6 @@ else
define('STRIP', (get_magic_quotes_gpc()) ? true : false);
}
+
+$starttime = explode(' ', microtime());
+$starttime = $starttime[1] + $starttime[0];