From bb5a845600b42d4b9663928fa332476a2ed2f5de Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 13 Mar 2017 16:35:53 +0100 Subject: [PATCH] our error_handler did not allow to supporess just warnings eg. by using: error_reporting(error_reporting()&~E_WARNING); --- api/src/loader/exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/loader/exception.php b/api/src/loader/exception.php index 1f353503f3..44ae0e98fb 100755 --- a/api/src/loader/exception.php +++ b/api/src/loader/exception.php @@ -177,7 +177,7 @@ function egw_error_handler ($errno, $errstr, $errfile, $errline) case E_USER_WARNING: // skip message for warnings supressed via @-error-control-operator (eg. @is_dir($path)) // can be commented out to get suppressed warnings too! - if (error_reporting() && + if ((error_reporting() & $errno) && // silence "Declaration of $class::$method should be compatible with $parent::$method" warning !(substr($errstr, 0, 15) === 'Declaration of ' && strpos($errstr, ' should be compatible with ') !== false))