#29350 [Com]: output_compression not working with zlib as loadable module
| From: | artdesign at mail dot ru | Date: | Wed, 29 Dec 2004 03:35:26 +0000 |
| Subject: | #29350 [Com]: output_compression not working with zlib as loadable module | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71202@lists.php.net to get a copy of this message | ||
ID: 29350
Comment by: artdesign at mail dot ru
Reported By: marcel at virtua dot ch
Status: Open
Bug Type: Output Control
Operating System: FreeBSD 4.8p24
PHP Version: 4.3.8
New Comment:
freebsd 4.9 + php 4.3.10 - same sh!t
Previous Comments:
------------------------------------------------------------------------
[2004-12-07 12:44:36] 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.
------------------------------------------------------------------------
[2004-10-17 19:19:59] 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-09-30 00:42:22] 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>
‹
</body>
</html>
--------------------------------------------------
------------------------------------------------------------------------
[2004-07-29 00:32:50] 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-07-23 14:13:00] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29350&edit=1