php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62183 http content header missing
Submitted: 2012-05-29 12:23 UTC Modified: 2012-07-25 06:38 UTC
From: chris at topnotes dot net Assigned:
Status: Closed Package: Zlib related
PHP Version: 5.4.3 OS: OSX 10.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chris at topnotes dot net
New email:
PHP Version: OS:

 

 [2012-05-29 12:23 UTC] 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



 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-29 19:25 UTC] chris at topnotes dot net
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).
 [2012-07-25 06:38 UTC] chris at topnotes dot net
-Status: Open +Status: Closed
 [2012-07-25 06:38 UTC] chris at topnotes dot net
seems to be fixed in 5.4.5
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC