1
sato-san
Does the GZIP compression have still an bug in the version 2.2.4?
  • 2006/2/24 8:46

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1


can im change the code:

Quote:

if ($xoopsConfig['gzip_compression'] == 1) {
ob_start("ob_gzhandler");
} else {
ob_start();
}



with


Quote:

if ($xoopsConfig['gzip_compression'] &&
$xoopsConfig['debug_mode'] != 1) {
$phpver = phpversion();
$useragent = (isset($_SERVER["HTTP_USER_AGENT"])) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;

if ($phpver >= '4.0.4pl1' && (strstr($useragent, 'compatible') || strstr($useragent,'Gecko'))) {
if (extension_loaded('zlib'))
ob_start('ob_gzhandler');
} else if ($phpver > '4.0') {
if
(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'],'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = true;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
} else {
ob_start();
}


by version 2.2.4???

2
sato-san
Re: Does the GZIP compression have still an bug in the version 2.2.4?
  • 2006/4/2 18:21

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1


??? Or Version 2.0.X

Login

Who's Online

282 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits