Skip to content

Commit

Permalink
FIX: Handle E_RECOVERABLE_ERROR (fixes silverstripe#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Mar 13, 2014
1 parent eca35c4 commit d63acf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ function exceptionHandler($exception) {
/**
* Generic callback to catch standard PHP runtime errors thrown by the interpreter
* or manually triggered with the user_error function.
* Caution: The error levels default to E_ALL is the site is in dev-mode (set in main.php).
* Caution: The error levels default to E_ALL if the site is in dev-mode (set in main.php).
*
* @ignore
* @param int $errno
Expand All @@ -540,6 +540,7 @@ function errorHandler($errno, $errstr, $errfile, $errline) {
case E_ERROR:
case E_CORE_ERROR:
case E_USER_ERROR:
case E_RECOVERABLE_ERROR:
return Debug::fatalHandler($errno, $errstr, $errfile, $errline, debug_backtrace());

case E_WARNING:
Expand Down

0 comments on commit d63acf7

Please sign in to comment.