aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMarek A. R <aptx@phpbb.com>2009-07-18 09:44:03 +0000
committerMarek A. R <aptx@phpbb.com>2009-07-18 09:44:03 +0000
commitba08191a7027969eabaa03c4369f8d9bae4fd7a6 (patch)
tree92565ad90e2650fdc245f7394e165486104d3a40 /phpBB/includes/functions.php
parentf7b5c060ae67a7ad568b3317043a743f84052f79 (diff)
downloadforums-ba08191a7027969eabaa03c4369f8d9bae4fd7a6.tar
forums-ba08191a7027969eabaa03c4369f8d9bae4fd7a6.tar.gz
forums-ba08191a7027969eabaa03c4369f8d9bae4fd7a6.tar.bz2
forums-ba08191a7027969eabaa03c4369f8d9bae4fd7a6.tar.xz
forums-ba08191a7027969eabaa03c4369f8d9bae4fd7a6.zip
- PHP4 compatibility
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9776 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index eaaa8aaf6a..5b0a2340b5 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3306,6 +3306,11 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
$msg_text = $msg_long_text;
}
+ if (!defined('E_DEPRECATED'))
+ {
+ define('E_DEPRECATED', 8192);
+ }
+
switch ($errno)
{
case E_NOTICE:
@@ -3481,6 +3486,11 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
exit_handler();
break;
+
+ // PHP4 comptibility
+ case E_DEPRECATED:
+ return true;
+ break;
}
// If we notice an error not handled here we pass this back to PHP by returning false