diff --git a/Think/Cache.php b/Think/Cache.php index a0ea0250..930307fa 100644 --- a/Think/Cache.php +++ b/Think/Cache.php @@ -31,7 +31,7 @@ class Cache { self::$handler = new $class($options); return self::$handler; }else{ - Error::halt('_CACHE_TYPE_INVALID_:'.$type); + E('_CACHE_TYPE_INVALID_:'.$type); } } diff --git a/Think/Error.php b/Think/Error.php index d16d88ef..66ab8b6b 100644 --- a/Think/Error.php +++ b/Think/Error.php @@ -64,6 +64,7 @@ class Error { // 记录日志 Log::save(); if ($e = error_get_last()) { + ob_end_clean(); self::appError($e['type'],$e['message'],$e['file'],$e['line']); } } diff --git a/Think/Loader.php b/Think/Loader.php index b019483a..9ad50a8d 100644 --- a/Think/Loader.php +++ b/Think/Loader.php @@ -235,7 +235,7 @@ class Loader { self::$_instance[$identify] = $o; } else - Error::halt(Lang::get('_CLASS_NOT_EXIST_').':'.$class); + E(Lang::get('_CLASS_NOT_EXIST_').':'.$class); } return self::$_instance[$identify]; }