From 1bb95acb8498cdd77a80853644976ce53a345f39 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 15 Nov 2016 13:37:17 +0100 Subject: [PATCH] [Debug] Remove GLOBALS from exception context to avoid endless recursion --- src/Symfony/Component/Debug/ErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Debug/ErrorHandler.php b/src/Symfony/Component/Debug/ErrorHandler.php index 458cb31771..ea8c1b6240 100644 --- a/src/Symfony/Component/Debug/ErrorHandler.php +++ b/src/Symfony/Component/Debug/ErrorHandler.php @@ -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;