Skip to content

Commit c1d73fd

Browse files
committed
Merge pull request zendframework#2786 from weierophinney/hotfix/2679
[zendframework#2679] Bitwise op instead of comparison
2 parents 44bfeb8 + a5d7a27 commit c1d73fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Log/Logger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public static function registerErrorHandler(Logger $logger)
380380
set_error_handler(function($errno, $errstr, $errfile, $errline, $errcontext) use ($errorHandlerMap, $logger) {
381381
$errorLevel = error_reporting();
382382

383-
if ($errorLevel && $errno) {
383+
if ($errorLevel & $errno) {
384384
if (isset($errorHandlerMap[$errno])) {
385385
$priority = $errorHandlerMap[$errno];
386386
} else {

0 commit comments

Comments
 (0)