[Debug] Remove GLOBALS from exception context to avoid endless recursion

This commit is contained in:
Jordi Boggiano 2016-11-15 13:37:17 +01:00
parent d94d837e9e
commit 1bb95acb84
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ class ErrorHandler
$type &= $level | $this->screamedErrors;
if ($type && ($log || $throw)) {
if (PHP_VERSION_ID < 50400 && isset($context['GLOBALS']) && ($this->scopedErrors & $type)) {
if (isset($context['GLOBALS']) && ($this->scopedErrors & $type)) {
$e = $context; // Whatever the signature of the method,
unset($e['GLOBALS'], $context); // $context is always a reference in 5.3
$context = $e;