#16109 [NoF->Csd]: zlib.output_compression and generated pictures

From: Date: Sun, 28 Jul 2002 14:20:57 +0000
Subject: #16109 [NoF->Csd]: zlib.output_compression and generated pictures
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15444@lists.php.net to get a copy of this message
ID: 16109 Updated by: sr@php.net Reported By: pguillot@paanjaru.com -Status: No Feedback +Status: Closed Bug Type: Zlib Related Operating System: linux PHP Version: 4.1.2 New Comment: Should be fixed in latest CVS. Now pages with image/ content-type header aren't compressed and you can use ini_set with zlib.output_compression during script execeution (before the headers are sent). Previous Comments: ------------------------------------------------------------------------ [2002-07-03 01:00:09] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-06-02 17:41:53] sr@php.net Are you sure mod_gzip compresses the pictures? Try to explicitly configure mod_gzip to compress images and please give us feedback if they work with your Netscape. I did a short test here and they also didn't work, so it seems really a Netscape problem. Other test: Does it work if you switch of zlib.output_compression and instead compress the page via mod_gzip? ------------------------------------------------------------------------ [2002-05-29 03:54:17] php@fatalfx.com Here's a short reproducing example script. Since the two pictures on the php info page are "generated" (inline) the script is very short: <?php phpinfo(); ?> Make sure your zlib.output_compression = On and you use Netscape Communicator 4.79 (Maybe the "bug" is in other Netscape version too but in 4.79 it is for sure). Roger ------------------------------------------------------------------------ [2002-05-28 15:47:52] pguillot@paanjaru.com Welcome to the twilight zone ... After a question from Roger Wetzel, I made a few more tests. It seems the problem is on the netscape side : I tested Netscape 7.0PR1 and the pictures are ok even with zlib.output_compression enabled ... Using my old Netscape 4.77 the problem remains even if the apache httpd.conf contains a KeepAlive set to Off or MaxRequestsPerChild set to 1 ... So it's should not be a keep-alive problem. What still is in question is that when using mod_gzip, the problem doesn't occur. So there is a workaround , either disable zlib.output_compression or use a decent mozilla/netscape. Patrick ------------------------------------------------------------------------ [2002-05-28 10:23:51] php@fatalfx.com When I look at http://www.php.net/manual/en/function.ini-set.php it says that the value can be set anywhere (PHP_INI_ALL). Yes, that true what it has no effect. The master value on my computer is "on" and when I set it "off" at the beginning of my script it has no effect (even if phpinfo() tells the local value is "off"). So all pictures I read out from my database are not shown (broken image) in Netscape. Why can't I switch it "off" in a particular script? Is it a problem with the headers (Content-Encoding)? I really would like to have it switched "on" to keep the data transfer as low as possible. But if my pictures aren't shown in Netscape it's of no use. Actually, where is the bug? In the zlib? In Netscape? Roger ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16109 -- Edit this bug report at http://bugs.php.net/?id=16109&edit=1

« previous php.bugs (#15444) next »