8000 [Debug] Remove GLOBALS from exception context to avoid endless recursion · symfony/symfony@1bb95ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bb95ac

Browse files
committed
[Debug] Remove GLOBALS from exception context to avoid endless recursion
1 parent d94d837 commit 1bb95ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function handleError($type, $message, $file, $line, array $context)
357357
$type &= $level | $this->screamedErrors;
358358

359359
if ($type && ($log || $throw)) {
360-
if (PHP_VERSION_ID < 50400 && isset($context['GLOBALS']) && ($this->scopedErrors & $type)) {
360+
if (isset($context['GLOBALS']) && ($this->scopedErrors & $type)) {
361361
$e = $context; // Whatever the signature of the method,
362362
unset($e['GLOBALS'], $context); // $context is always a reference in 5.3
363363
$context = $e;

0 commit comments

Comments
 (0)
0