From 60f6d10e1636e297817e0608540f6f3b78804a95 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 21 May 2016 17:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84Error=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Error.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/think/Error.php b/library/think/Error.php index 3807abcc..a1541282 100644 --- a/library/think/Error.php +++ b/library/think/Error.php @@ -11,10 +11,10 @@ namespace think; +use think\console\Output as ConsoleOutput; use think\exception\ErrorException; use think\exception\Handle; use think\exception\ThrowableError; -use think\console\Output as ConsoleOutput; class Error { @@ -24,7 +24,7 @@ class Error */ public static function register() { - error_reporting(-1); + error_reporting(E_ALL); set_error_handler([__CLASS__, 'appError']); set_exception_handler([__CLASS__, 'appException']); register_shutdown_function([__CLASS__, 'appShutdown']); @@ -97,7 +97,6 @@ class Error return in_array($type, [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE]); } - /** * Get an instance of the exception handler. *