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();