mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
our error_handler did not allow to supporess just warnings
eg. by using: error_reporting(error_reporting()&~E_WARNING);
This commit is contained in:
parent
8f597194e0
commit
bb5a845600
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user