ID:               29350
 Comment by:       kir at fm dot com dot ua
 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:

the same on FreeBSD 5.2, PHP Version 4.3.9 with zlib as dynamically
loaded extension.
compiling zlib statically fixes the problem.


Previous Comments:
------------------------------------------------------------------------

[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>
  &#8249;
</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

Reply via email to