Emlog view.php phpwarning 问题的解决
发现主机目录下总是会出来lib中这个文件的line 18 出现警告
ob_start('ob_gzhandler');
解决很简单。。。官方也在6.0.0中给出了解决办法。。。
/*
5.3.1 有警告
public static function output() {
$content = ob_get_clean();
if (Option::get('isgzipenable') == 'y' && function_exists('ob_gzhandler')) {
ob_start('ob_gzhandler');
} else {
ob_start();
}
echo $content;
ob_end_flush();
exit;
}
使用6.0.0
*/
public static function output() {
$content = ob_get_clean();
ob_start();
echo $content;
ob_end_flush();
exit;
}
扫描二维码,在手机上阅读