output_compression refuses to work

From: Date: Tue, 14 May 2002 18:30:14 +0000
Subject: output_compression refuses to work
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-97601@lists.php.net to get a copy of this message
I've done some research on this and I'm a bit baffled as to why I can't get zlib.output_compression to work. I have two machines I've tried this on, and neither one wants to compress anything. The machines are RH 7.1 and 7.2, both running Apache 1.3.24 and PHP 4.2.0, though I couldn't get it working with earlier versions of both apps either. The error_log for Apache is telling me: PHP Fatal error: Cannot use both zlib.output_compression and output_handler together!! in Unknown on line 0 The pertinent areas of php.ini read like so: output_buffering = Off output_handler = ob_gzhandler zlib.output_compression = On Also, if I leave all this stuff off, and I try to call it from a script: <?php ob_start("gz_handler"); phpinfo(); ob_end_flush(); ?> I look in the zlib area of phpinfo and zlib.output_compression is off both locally and globally. However this generates no errors that I can find, though I could be looking in the wrong place :-) My compile options are simple, just: --with-mysql --with-apache=../apache_1.3.24 --with-pdflib=no --with-zlib Zlib is version 1.1.3 according to phpinfo. My web browser, if it matters, is I.E. 6.0 running on 2K with SR2. Everything else seems to be running fine on this machine; I even got Zend Optimizer working for once! Any ideas? Thanks! # Nathan

« previous php.general (#97601) next »