File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -444,19 +444,17 @@ function cmdHelp($command)
444
444
*/
445
445
function error_handler ($ errno , $ errmsg , $ file , $ line )
446
446
{
447
- if ($ errno & E_STRICT
448
- || $ errno & E_DEPRECATED
449
- || !error_reporting ()
447
+ if ($ errno & E_STRICT ) {
448
+ return ; // E_STRICT
449
+ }
450
+ if ($ errno & E_DEPRECATED ) {
451
+ return ; // E_DEPRECATED
452
+ }
453
+ if (!(error_reporting () & $ errno ) &&
454
+ isset ($ GLOBALS ['config ' ]) &&
455
+ $ GLOBALS ['config ' ]->get ('verbose ' ) < 4
450
456
) {
451
- if ($ errno & E_STRICT ) {
452
- return ; // E_STRICT
453
- }
454
- if ($ errno & E_DEPRECATED ) {
455
- return ; // E_DEPRECATED
456
- }
457
- if (!error_reporting () && isset ($ GLOBALS ['config ' ]) && $ GLOBALS ['config ' ]->get ('verbose ' ) < 4 ) {
458
- return false ; // @silenced error, show all if debug is high enough
459
- }
457
+ return false ; // @silenced error, show all if debug is high enough
460
458
}
461
459
$ errortype = array (
462
460
E_DEPRECATED => 'Deprecated Warning ' ,
You can’t perform that action at this time.
0 commit comments