php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29350 output_compression not working with zlib as loadable module
Submitted: 2004-07-23 14:13 UTC Modified: 2005-02-11 01:00 UTC
Votes:13
Avg. Score:4.5 ± 0.6
Reproduced:13 of 13 (100.0%)
Same Version:6 (46.2%)
Same OS:8 (61.5%)
From: marcel at virtua dot ch Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.8 OS: FreeBSD *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marcel at virtua dot ch
New email:
PHP Version: OS:

 

 [2004-07-23 14:13 UTC] marcel at virtua dot ch
Description:
------------
After installing lang/php4-4.3.8_1 + php4-zlib and setting 
"zlib.output_compression = On" in php.ini, all I get is garbage (looking 
like compressed data). Tried different browsers. 
 
I had to compile php with --with-zlib, and not with zlib as a loadable 
module to get it working correctly. 

Reproduce code:
---------------
any .php file

Expected result:
----------------
normal html code 

Actual result:
--------------
unreadable binary data. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-29 00:32 UTC] frank at atteveld dot demon dot nl
I have the same problem. Zlib won't work when it's compilled as a module. Therefor I have to add it to the Makefile myself.

I'm running a FreeBSD I386 5.2-release with php 4.3.8
 [2004-09-30 00:42 UTC] reuf_m at hotmail dot com
System
------
FreeBSD 5.3 BETA 6  AMD64(tried on 5.2.1 also); 
Apache/2.0.50 (FreeBSD) 
PHP/5.0.1
"zlib" is loaded as module.

Result (here phpinfo(); with zlib compression ON)
------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

<html>
<head>
  <title></title>
</head>

<body>
  &#8249;
</body>
</html>
--------------------------------------------------
 [2004-10-17 19:19 UTC] tristan at stinx dot net
Confirmed on
FreeBSD 4.9-STABLE
Apache 2.0.52 (from ports, mod_deflate on by default)
PHP 4.3.9 (from ports, as an Apache module)
Zlib PHP module installed from /usr/ports/archivers/php4-zlib

With "zlib.output_compression = On" in /usr/local/etc/php.ini and "extension=zlib.so" in /usr/local/etc/php/extensions.ini,  the output looks like it is compressed, but there's no mention of compression in the HTTP headers. Disabling mod_deflate in the Apache config has not effect.

After changing zlib.output_compression to Off, the output is normal. Content is compressed if mod_deflate is on, uncompressed if off (as expected).
 [2004-12-07 12:44 UTC] kir at fm dot com dot ua
the same on FreeBSD 5.2, PHP Version 4.3.9 with zlib as dynamically loaded extension.
compiling zlib statically fixes the problem.
 [2005-02-11 01:00 UTC] 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 08:01:27 2024 UTC