改进Error类的register方法

This commit is contained in:
thinkphp
2016-06-15 16:54:12 +08:00
parent 4c848c4a74
commit 340bb3a660
2 changed files with 4 additions and 5 deletions

View File

@@ -29,10 +29,6 @@ class Error
set_error_handler([__CLASS__, 'appError']);
set_exception_handler([__CLASS__, 'appException']);
register_shutdown_function([__CLASS__, 'appShutdown']);
if (!App::$debug) {
ini_set('display_errors', 'Off');
}
}
/**