Bug #17603: ini_set can't disable zlib

From: Date: Wed, 05 Jun 2002 00:33:41 +0000
Subject: Bug #17603: ini_set can't disable zlib
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9509@lists.php.net to get a copy of this message
From: anon-php@sitefoundry.com Operating system: RH 7.2 PHP version: 4.2.1 PHP Bug Type: Output Control Bug description: ini_set can't disable zlib 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 bug report at http://bugs.php.net/?id=17603&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17603&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17603&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17603&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17603&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17603&r=support Expected behavior: http://bugs.php.net/fix.php?id=17603&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17603&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17603&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17603&r=globals

« previous php.bugs (#9509) next »