ID:               17603
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
-Bug Type:         Output Control
+Bug Type:         Documentation problem
 Operating System: RH 7.2
 PHP Version:      4.2.1
 New Comment:

This is quite logical because the output compression starts before your
script is executed. If you disable it in your script after it has been
started it won't be stopped.

You can _try_ a couple of ob_end_clean()'s (use ob_get_level() to find
out how many) to stop it. 

Reopening as a documentation problem.


Previous Comments:
------------------------------------------------------------------------

[2002-06-04 20:33:40] [EMAIL PROTECTED]

I have the following line in my php.ini:
  zlib.output_compression = On

In experimenting with this, I attempted to disable it within a script
(mostly because I wanted to defeat the output buffering that zlib
performs). I tried several variations of this line in a script:
    ini_set('zlib.output_compression', '0');
    ini_set('zlib.output_compression', 0);
    ini_set('zlib.output_compression', 'off');

In all cases, output is still compressed. Here is a complete script:
<?
    ini_set('zlib.output_compression', '0');
    echo "If compression is disabled, you should be able to read this
via 'lynx -mime_header'";
?>

You can see it here:
http://sitefoundry.com/php/zlib.html

I get this output:
HTTP/1.1 200 OK
Date: Wed, 05 Jun 2002 00:30:51 GMT
Server: Apache/1.3.22
Content-Encoding: gzip
Connection: close
Content-Type: text/html

[non-ascii junk here]

Here is my configure line:
./configure --with-apache=/usr/local/src/apache_1.3.22
--with-gd=/usr/local --with-imap --with-mysql=/usr/local/mysql
--with-config-file-path=/usr/local/apache/conf --enable-debug=no
--enable-track-vars=yes --with-zlib --enable-calendar



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17603&edit=1

Reply via email to