Skip to content

Commit

Permalink
fixed 3853: Don't log $context given on error handler as extras becau…
Browse files Browse the repository at this point in the history
…se it contains an array of ALL global variables incl. super globals
  • Loading branch information
marc-mabe committed Jun 8, 2013
1 parent 6ae5329 commit 5057aa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Zend/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public static function registerErrorHandler(Logger $logger, $continueNativeHandl

$errorHandlerMap = static::$errorPriorityMap;

$previous = set_error_handler(function ($level, $message, $file, $line, $context)
$previous = set_error_handler(function ($level, $message, $file, $line)
use ($logger, $errorHandlerMap, $continueNativeHandler)
{
$iniLevel = error_reporting();
Expand All @@ -534,7 +534,6 @@ public static function registerErrorHandler(Logger $logger, $continueNativeHandl
'errno' => $level,
'file' => $file,
'line' => $line,
'context' => $context,
));
}

Expand Down

0 comments on commit 5057aa0

Please sign in to comment.