diff options
| author | Nils Adermann <naderman@naderman.de> | 2009-12-06 02:30:24 +0000 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2009-12-06 02:30:24 +0000 |
| commit | fe6958d54f0b82a9dfd678005561d729f1ffcd44 (patch) | |
| tree | e8bd3f4936834744ad9c8d576fa8b03e3da44e59 /phpBB/style.php | |
| parent | a5c9a2f36e569b88d0d9867f955eafc8e0606560 (diff) | |
| download | forums-fe6958d54f0b82a9dfd678005561d729f1ffcd44.tar forums-fe6958d54f0b82a9dfd678005561d729f1ffcd44.tar.gz forums-fe6958d54f0b82a9dfd678005561d729f1ffcd44.tar.bz2 forums-fe6958d54f0b82a9dfd678005561d729f1ffcd44.tar.xz forums-fe6958d54f0b82a9dfd678005561d729f1ffcd44.zip | |
PHP 5.3 compatibility: Disable E_DEPRECATED on startup to keep set_magic_quotes_runtime(0) quiet. [Bug #54495]
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10299 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
| -rw-r--r-- | phpBB/style.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/style.php b/phpBB/style.php index 64241f7ed3..fa77815670 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -15,8 +15,12 @@ define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); -// Report all errors, except notices -error_reporting(E_ALL ^ E_NOTICE); +// Report all errors, except notices and deprecation messages +if (!defined('E_DEPRECATED')) +{ + define('E_DEPRECATED', 8192); +} +error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED); require($phpbb_root_path . 'config.' . $phpEx); |
