From 24262aea1da160396ef9959801d5a4226bd81d6f Mon Sep 17 00:00:00 2001 From: Luca Realdi Date: Fri, 21 Jul 2017 10:22:50 +0200 Subject: [PATCH] eZDebug::exceptionErrorHandler ignores error code which is not included in error_reporting --- lib/ezutils/classes/ezdebug.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ezutils/classes/ezdebug.php b/lib/ezutils/classes/ezdebug.php index d45852a5af9..4c8ede8eec7 100644 --- a/lib/ezutils/classes/ezdebug.php +++ b/lib/ezutils/classes/ezdebug.php @@ -1968,6 +1968,9 @@ private static function isAllowedByCurrentIP( $allowedIpList ) */ public static function exceptionErrorHandler( $errno, $errstr, $errfile, $errline ) { + if (!(error_reporting() & $errno)) { + return; + } throw new ErrorException($errstr, 0, $errno, $errfile, $errline); }