1 parent 8c1fd7f commit 42f9f8dCopy full SHA for 42f9f8d
1 file changed
ThinkPHP/Lib/Core/Think.class.php
@@ -236,6 +236,7 @@ static public function appError($errno, $errstr, $errfile, $errline) {
236
case E_COMPILE_ERROR:
237
case E_USER_ERROR:
238
ob_end_clean();
239
+ if(!ini_get('zlib.output_compression') && C('OUTPUT_ENCODE')) ob_start('ob_gzhandler');
240
$errorStr = "$errstr ".$errfile." 第 $errline 行.";
241
if(C('LOG_RECORD')) Log::write("[$errno] ".$errorStr,Log::ERR);
242
function_exists('halt')?halt($errorStr):exit('ERROR:'.$errorStr);
0 commit comments