MantisBT: master 262a0864

Author Committer Branch Timestamp Parent
Paul Richards master 2009-07-06 14:31 master b00cd9b2
Changeset

Alter the way we handle compression within mantis:

This only applies zlib is enabled

if zlib.output_compression is not enabled in php.ini we use ob_gzhandler, else we use output_compression

Note: we behave differently if php is >=5.2.10 as we can use zlib.output_compression with ini_set: Note php manual:
"Note: You cannot use both ob_gzhandler() and zlib.output_compression. Also note that using zlib.output_compression is preferred over ob_gzhandler(). "

COMPRESSION_DISABLED can be defined as a constant to disable compression on a specific page if required, before including core.php.

mod - core/compress_api.php Diff File
mod - core.php Diff File