diff --git a/Library/Think/Error.php b/Library/Think/Error.php index 7354bf2b..b7675325 100644 --- a/Library/Think/Error.php +++ b/Library/Think/Error.php @@ -75,8 +75,16 @@ class Error { // 记录日志 Log::save(); if ($e = error_get_last()) { - ob_end_clean(); - self::halt($e); + switch ($e['type']) { + case E_ERROR: + case E_PARSE: + case E_CORE_ERROR: + case E_COMPILE_ERROR: + case E_USER_ERROR: + ob_end_clean(); + self::halt($e); + break; + } } }