RE: [PHP] zlib1.1.3 and ob_gzhandler

From: Date: Tue, 28 Aug 2001 13:10:27 +0000
Subject: RE: [PHP] zlib1.1.3 and ob_gzhandler
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64783@lists.php.net to get a copy of this message
I was using ob_gzhandler with PHP4.0.4, and everything was fine. I was using an older version of gd and zlib, though (I think 1.8.3 and 1.1.2, respectively -- but I'm not certain). There are no errors in the apache log. -----Original Message----- From: Zeev Suraski [mailto:zeev@zend.com] Sent: Tuesday, August 28, 2001 04:07 To: Martin Helie Cc: php-general@lists.php.net Subject: Re: [PHP] zlib1.1.3 and ob_gzhandler Were you using output compression with previous versions of PHP? Did it work with images in these versions? Also, are you seeing any errors in your Web server's error log? Zeev At 00:24 25-08-01, Martin Helie wrote: >Hello everyone, > >I'm a newbie here, so please forgive me if this topic has been discussed >previously (I could find no mention of it). > >I recently compiled PHP4.0.6 with gd1.8.4 and zlib 1.1.3 and experienced no >problems --except! If you use ob_gzhandler as your output handler, you'll >want to make sure any image functions you use in PHP return valid images for >Netscape (I tried Netscape Communicator 4.7 on Linux, Irix and Windows and >got "broken images"). Funny thing is, if you right-clicked on the image and >did "view image", the browser would show it correctly. > >After much frustration, I realized that using _no_ output handler (at least >not ob_gzhandler) solved the problem. > >I assume this is due to a different way of gzipping data in either PHP or >zlib from previous versions. > >I hope someone finds this information useful -- or can provide the "real" >explanation, maybe even a better solution. > >Martin > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/

« previous php.general (#64783) next »