From 62b8d6039ce3e2a65ae834c3c17634bafe8e00bd Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 30 Jul 2016 20:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BApp=E7=B1=BBinitCommon?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/App.php b/library/think/App.php index ca6e4536..6daf7300 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -366,7 +366,7 @@ class App self::$debug = Config::get('app_debug'); if (!self::$debug) { ini_set('display_errors', 'Off'); - } else { + } elseif (!IS_CLI) { //重新申请一块比较大的buffer if (ob_get_level() > 0) { $output = ob_get_clean();