mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
- PHP4 compatibility
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9776 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -3306,6 +3306,11 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||||||
$msg_text = $msg_long_text;
|
$msg_text = $msg_long_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined('E_DEPRECATED'))
|
||||||
|
{
|
||||||
|
define('E_DEPRECATED', 8192);
|
||||||
|
}
|
||||||
|
|
||||||
switch ($errno)
|
switch ($errno)
|
||||||
{
|
{
|
||||||
case E_NOTICE:
|
case E_NOTICE:
|
||||||
@@ -3481,6 +3486,11 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||||||
|
|
||||||
exit_handler();
|
exit_handler();
|
||||||
break;
|
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
|
// If we notice an error not handled here we pass this back to PHP by returning false
|
||||||
|
Reference in New Issue
Block a user