#116 phpWiki pages get double gzipped

PHP_error
open
nobody
None
5
2012-10-11
2002-04-19
Anonymous
No

If you have zlib.output_compression = on in your
php.ini phpWiki pages get double gzipped and don't
open in your browser. To fix this, make
compress_output look like the following:

function compress_output() {
if (!ini_get('zlib.output_compression') &&
function_exists('ob_gzhandler')) {
ob_start('ob_gzhandler');
$this->_is_compressing_output = true;
}
}

Discussion

  • Logged In: YES
    user_id=698517

    Bug still present in 1.3.5pre with Apache 2 (Apache-
    AdvancedExtranetServer/2.0.45 (Mandrake Linux/4.2mdk)
    mod_ssl/2.0.45 OpenSSL/0.9.7a PHP/4.3.1) and PHP 4