Fix error handling support, fixes #4833
parent
594cf658da
commit
4e00635298
|
@ -36,8 +36,8 @@ class ErrorHandler
|
||||||
*/
|
*/
|
||||||
public static function handle($level, $message, $file, $line)
|
public static function handle($level, $message, $file, $line)
|
||||||
{
|
{
|
||||||
// respect error_reporting being disabled
|
// error code is not included in error_reporting
|
||||||
if (!error_reporting()) {
|
if (!(error_reporting() & $level)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue