Skip to content

Commit 11c1804

Browse files
author
liu21st@gmail.com
committed
异常捕获产生的其他问题 暂时还原
git-svn-id: http://thinkphp.googlecode.com/svn/trunk@2967 539fd3ec-2725-0410-b7ab-251e373a8e33
1 parent 82b2f44 commit 11c1804

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

ThinkPHP/Lib/Core/Think.class.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class Think {
3636
*/
3737
static public function start() {
3838
// 设定错误和异常处理
39-
register_shutdown_function(array('Think','fatalError'));
4039
set_error_handler(array('Think','appError'));
4140
set_exception_handler(array('Think','appException'));
4241
// 注册AUTOLOAD方法
@@ -275,16 +274,6 @@ static public function appError($errno, $errstr, $errfile, $errline) {
275274
break;
276275
}
277276
}
278-
279-
// 捕捉致命错误
280-
static public function fatalError() {
281-
ob_clean();
282-
if ($e = error_get_last()) {
283-
if ($e['type']>0) {
284-
Think::appError($e['type'],$e['message'],$e['file'],$e['line']);
285-
}
286-
}
287-
}
288277

289278
/**
290279
+----------------------------------------------------------

0 commit comments

Comments
 (0)