8000 Merge branch '2.8' into 3.1 · symfony/symfony@30e83dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 30e83dc

Browse files
Merge branch '2.8' into 3.1
* 2.8: [Debug] Remove GLOBALS from exception context to avoid endless recursion
2 parents 6b7dd44 + 9b9f1be commit 30e83dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ public function handleError($type, $message, $file, $line, array $context, array
372372
return $type && $log;
373373
}
374374

375+
if (isset($context['GLOBALS']) && ($this->scopedErrors & $type)) {
376+
unset($context['GLOBALS']);
377+
}
378+
375379
if (null !== $backtrace && $type & E_ERROR) {
376380
// E_ERROR fatal errors are triggered on HHVM when
377381
// hhvm.error_handling.call_user_handler_on_fatals=1

0 commit comments

Comments
 (0)
0