Skip to content

Commit

Permalink
Merge pull request zendframework#2786 from weierophinney/hotfix/2679
Browse files Browse the repository at this point in the history
[zendframework#2679] Bitwise op instead of comparison
  • Loading branch information
Freeaqingme committed Oct 17, 2012
2 parents 44bfeb8 + a5d7a27 commit c1d73fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public static function registerErrorHandler(Logger $logger)
set_error_handler(function($errno, $errstr, $errfile, $errline, $errcontext) use ($errorHandlerMap, $logger) {
$errorLevel = error_reporting();

if ($errorLevel && $errno) {
if ($errorLevel & $errno) {
if (isset($errorHandlerMap[$errno])) {
$priority = $errorHandlerMap[$errno];
} else {
Expand Down

0 comments on commit c1d73fd

Please sign in to comment.