Bug #62183 [Opn]: http content header missing
| From: | chris at topnotes dot net | Date: | Tue, 29 May 2012 19:25:06 +0000 |
| Subject: | Bug #62183 [Opn]: http content header missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170911@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62183&edit=1
ID: 62183
User updated by: chris at topnotes dot net
Reported by: chris at topnotes dot net
Summary: http content header missing
Status: Open
Type: Bug
Package: Zlib related
Operating System: OSX 10.6
PHP Version: 5.4.3
Block user comment: N
Private report: N
New Comment:
I've downloaded PHP 5.3.13 and compiled that with my installation of Apache httpd 2.4.2 (ie
replacing PHP 5.4.3). Output compression now working fine.
So looks like something wrong with zlib in 5.4.3
(I'm not a C programmer, but zlib.c looks very different in 5.4.3 compared with 5.3.13).
Previous Comments:
------------------------------------------------------------------------
[2012-05-29 12:23:03] chris at topnotes dot net
Description:
------------
My current production set up is PHP 5.3.10 and Apache 2.2.22, both of which I downloaded source for
and compiled myself on OSX 10.6.
I've now downloaded and compiled the source for PHP 5.3.4
and using this with Apache 2.4.2
I have zlib output compression enabled in php.ini.
I'm using the same php.ini with both the 5.3.10 and 5.4.3 versions.
With the 5.3.4 version, the zlib compression doesn't seem to be working. There is no http
header "Content-Encoding: gzip" in my generated pages, which there is when I use the
5.3.10 software. Pages also taking much longer to deliver and load, which again suggests that
compression is not working.
From the phpinfo output, the zlib settings are the same, but I notice that php5.3.10 has zlib
version 1.2.3.3, yet php 5.4.3 has zlib 1.2.3
5.3.10 :
=======
zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3.3
Linked Version 1.2.3.3
Directive Local Value Master Value
zlib.output_compression On On
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
PHP 5.4.3
=========
zlib
ZLib Support enabled
Stream Wrapper compress.zlib://
Stream Filter zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
Directive Local Value Master Value
zlib.output_compression On On
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Also from the phpinfo pages, with 5.3.10 I see differencein the HTTP HEADERS INFORMATION (HTTP
response headers) section :
PHP 5.3.10 :
===========
X-Powered-By PHP/5.3.10
Content-Encoding gzip
Vary Accept-Encoding
PHP 5.4.3 :
============
X-Powered-By PHP/5.4.3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62183&edit=1