From 5931f77a3b7b9faed078d8eeea8eb91117fd601d Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 15 Mar 2005 18:33:16 +0000 Subject: [PATCH] - make install.php php5 compatible (hopefully) :D git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5101 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/phpBB/install/install.php b/phpBB/install/install.php index 8cefe04c92..7db904f7b8 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -225,6 +225,23 @@ function guess_lang() error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables set_magic_quotes_runtime(0); // Disable magic_quotes_runtime +// PHP5 with register_long_arrays off? +if (!isset($HTTP_POST_VARS) && isset($_POST)) +{ + $HTTP_POST_VARS = $_POST; + $HTTP_GET_VARS = $_GET; + $HTTP_SERVER_VARS = $_SERVER; + $HTTP_COOKIE_VARS = $_COOKIE; + $HTTP_ENV_VARS = $_ENV; + $HTTP_POST_FILES = $_FILES; + + // _SESSION is the only superglobal which is conditionally set + if (isset($_SESSION)) + { + $HTTP_SESSION_VARS = $_SESSION; + } +} + // Slash data if it isn't slashed if (!get_magic_quotes_gpc()) {