Skip to content

Commit 42f9f8d

Browse files
committed
修复一个页面压缩的bug
1 parent 8c1fd7f commit 42f9f8d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ThinkPHP/Lib/Core/Think.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ static public function appError($errno, $errstr, $errfile, $errline) {
236236
case E_COMPILE_ERROR:
237237
case E_USER_ERROR:
238238
ob_end_clean();
239+
if(!ini_get('zlib.output_compression') && C('OUTPUT_ENCODE')) ob_start('ob_gzhandler');
239240
$errorStr = "$errstr ".$errfile."$errline 行.";
240241
if(C('LOG_RECORD')) Log::write("[$errno] ".$errorStr,Log::ERR);
241242
function_exists('halt')?halt($errorStr):exit('ERROR:'.$errorStr);

0 commit comments

Comments
 (0)