From abc67d3f554fc8eca312436cb97d0894afd5202a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BA=A6=E5=BD=93=E8=8B=97=E5=84=BF?= Date: Thu, 28 Jan 2016 20:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BC=82=E5=B8=B8=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/start.php b/start.php index 653b428f..8c6f8329 100644 --- a/start.php +++ b/start.php @@ -20,9 +20,7 @@ require CORE_PATH . 'Loader.php'; Loader::register(); // 注册错误和异常处理机制 -register_shutdown_function('think\Error::appShutdown'); -set_error_handler('think\Error::appError'); -set_exception_handler('think\Error::appException'); +Error::register(); // 加载模式定义文件 $mode = require MODE_PATH . APP_MODE . EXT; @@ -50,4 +48,4 @@ if (APP_AUTO_BUILD && is_file(APP_PATH . 'build.php')) { // 是否自动运行 if (APP_AUTO_RUN) { App::run(); -} \ No newline at end of file +}