Skip to content

Commit

Permalink
Merge branch '2.8' into 3.1
Browse files Browse the repository at this point in the history
* 2.8:
  [Debug] Remove GLOBALS from exception context to avoid endless recursion
  • Loading branch information
nicolas-grekas committed Nov 15, 2016
2 parents 6b7dd44 + 9b9f1be commit 30e83dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Debug/ErrorHandler.php
Expand Up @@ -372,6 +372,10 @@ public function handleError($type, $message, $file, $line, array $context, array
return $type && $log;
}

if (isset($context['GLOBALS']) && ($this->scopedErrors & $type)) {
unset($context['GLOBALS']);
}

if (null !== $backtrace && $type & E_ERROR) {
// E_ERROR fatal errors are triggered on HHVM when
// hhvm.error_handling.call_user_handler_on_fatals=1
Expand Down

0 comments on commit 30e83dc

Please sign in to comment.