Skip to content
Snippets Groups Projects
Commit 6a79e8af authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

only enable ob_gzhandler if it exists

parent 787e5ebc
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
......
<?php
set_include_path(get_include_path() . PATH_SEPARATOR .
set_include_path(get_include_path() . PATH_SEPARATOR .
dirname(__FILE__) . "/include");
/* remove ill effects of magic quotes */
......@@ -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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment