mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
f7b5c060ae
commit
ba08191a70
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue