only enable ob_gzhandler if it exists
This commit is contained in:
parent
787e5ebc21
commit
6a79e8afeb
3 changed files with 6 additions and 4 deletions
|
@ -21,7 +21,9 @@
|
|||
|
||||
chdir("..");
|
||||
|
||||
if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT) {
|
||||
if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
|
||||
function_exists("ob_gzhandler")) {
|
||||
|
||||
ob_start("ob_gzhandler");
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
header("Content-Type: text/plain; charset=utf-8");
|
||||
|
||||
if (ENABLE_GZIP_OUTPUT) {
|
||||
if (ENABLE_GZIP_OUTPUT && function_exists("ob_gzhandler")) {
|
||||
ob_start("ob_gzhandler");
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
if (!init_connection($link)) return;
|
||||
|
||||
if (ENABLE_GZIP_OUTPUT) {
|
||||
if (ENABLE_GZIP_OUTPUT && function_exists("ob_gzhandler")) {
|
||||
ob_start("ob_gzhandler");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue