From d63acf77682188bd9f58b0bb9a20f9668a6bb6b9 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 13 Mar 2014 15:08:00 +0000 Subject: [PATCH] FIX: Handle E_RECOVERABLE_ERROR (fixes #2928) --- dev/Debug.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/Debug.php b/dev/Debug.php index 65d1ed8e63a..32a52247b79 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -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 @@ -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: