#32283 [NEW]: zlib.output_compression = 1 but no headers sent
| From: | plasmahh at gmx dot net | Date: | Fri, 11 Mar 2005 23:10:05 +0000 |
| Subject: | #32283 [NEW]: zlib.output_compression = 1 but no headers sent | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76721@lists.php.net to get a copy of this message | ||
From: plasmahh at gmx dot net
Operating system: Linux
PHP version: 5.0.3
PHP Bug Type: Output Control
Bug description: zlib.output_compression = 1 but no headers sent
Description:
------------
When setting zlib.output_compression in php.ini and outputting any page
(tried with <? phpinfo(); ?>) no proper headers are sent. From zlib manual
:
Whether to transparently compress pages. If this option is set to "On" in
php.ini or the Apache configuration, pages are compressed if the browser
sends an "Accept-Encoding: gzip" or "deflate" header. "Content-Encoding:
gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are
added to the output.
It looks like in zlib.c the php_enable_output_compression function should
enable the compression, which it also does (the data is sent gzipped
properly if the client has a proper Accept-Encoding header sent) but
nowhere in there is a header sent with Content-Encoding. The only
occurence is in the ob_gzhandler but it seems like this is a totally
different feature. I have set a header output in my
php_enable_output_compression and it works for me, dont know if this is
the proper solution.
--
Edit bug report at http://bugs.php.net/?id=32283&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32283&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32283&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32283&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32283&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32283&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32283&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32283&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32283&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32283&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32283&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32283&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32283&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32283&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32283&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32283&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32283&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32283&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32283&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32283&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32283&r=mysqlcfg