#30507 [Com]: Content-Encoding header is not set
| From: | altuhovd at gmail dot com | Date: | Tue, 09 Oct 2007 05:48:30 +0000 |
| Subject: | #30507 [Com]: Content-Encoding header is not set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118348@lists.php.net to get a copy of this message | ||
ID: 30507
Comment by: altuhovd at gmail dot com
Reported By: webmaster at ex-centris dot com
Status: No Feedback
Bug Type: Zlib Related
Operating System: RedHat Enterprise Linux 3
PHP Version: 5.0.2
New Comment:
FreeBSD 6.2-RELEASE-p2
Apache/1.3.37 (Unix)
PHP/5.2.2-dev
header is not set!
Only working after manual header set!
Previous Comments:
------------------------------------------------------------------------
[2005-03-15 01:00:21] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
------------------------------------------------------------------------
[2005-03-07 22:22:55] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-10-21 02:44:24] webmaster at ex-centris dot com
Description:
------------
I enabled automatic gzip compression with the following
line in php.ini:
zlib.output_compression = on
The problem is that the Content-Encoding header does not
get set at all in the response. Therefore, a browser
that advertises itself as supporting gzip compression
(Accept-Encoding: gzip,deflate) receives compressed
content but does not know it is compressed.
If I manually add the following to my script:
header("Content-Encoding: gzip");
... it then works.
This was tried in the Safari and Firefox clients on Mac
OS X. Server is RedHat Enterprise Linux 3 running kernel
2.4.21-20. PHP 5.0.2 running as a module of
Apache2 2.0.46.
If you need other details do not hesitate to contact me.
Thank you.
P.S. Even though I compiled PHP with:
./configure --with-apxs2 --with-mysql --with-zlib
if I call phpinfo, here what it shows:
./configure --with-apxs2 --with-mysql
Reproduce code:
---------------
<?php
print 'Here is some output !!!';
?>
Expected result:
----------------
Here is some output !!!
Actual result:
--------------
??H-JU?,V(??MU?/-)(-QPTT???D?M
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30507&edit=1