#26613 [Fbk->Opn]: ob_gzhandler seems NOT WORKING
| From: | sabio71 at hotmail dot com | Date: | Fri, 19 Dec 2003 09:09:43 +0000 |
| Subject: | #26613 [Fbk->Opn]: ob_gzhandler seems NOT WORKING | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52285@lists.php.net to get a copy of this message | ||
ID: 26613
User updated by: sabio71 at hotmail dot com
Reported By: sabio71 at hotmail dot com
-Status: Feedback
+Status: Open
Bug Type: Zlib Related
Operating System: slackware 9.1 stable patched
PHP Version: 4.3.4
New Comment:
i'm downloading CVS today (2003 12 19) ... more feedback as soon as
possible...
thanx in advance ...
Fabio :)
Previous Comments:
------------------------------------------------------------------------
[2003-12-18 16:34:27] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-12-15 06:08:51] sabio71 at hotmail dot com
A MORE CLEAR EXPLANATION
yes ILIA, for sure :) !!!. I'm using ie 5, ie 5.5, ie 6, netscape 6,
mozilla, konqueror, even lynx ...
i've made some other attempts, in particular i've checked if
1) for some reasons apache was not passing through to php
"accept-encoding" but, obviously it is not the case
2) it makes thing behaves differently pokeing with php.ini, like
setting [output_buffering = 4096; AND output_handler = ob_gzhandler]
OR
[output_handler = ; AND zlib.output_compression = On]
and calling ob_start() instead of ob_start("ob_gzhandler")
none of the two seems working.
Moreover, it seems the semantic of calling sequence ob_start ...
ob_end_flush has changed a bit from version 4.2.3 (yes i know it is
VERY VERY old and perhaps the changed behaviour il well documented)
in few words, i'm using an old version of ez-publish (2.1) that works
with apache 1.3.27 and php 4.2.3 on linux...
with that combination the system works and compress the http output
stream...
on a apache 1.3.29 with brand new php 4.3.4 simply it doesn't...
moreover (but this is ez-publish code-base fault) on php 4.3.4 there
are some Warnings that impose modification to code-base in order to get
a working configuration...
(a not so painless up-grade :) )
however the simple code
[short script descripting]
<?php
ob_start("ob_gzhandler");
..
.
.
ob_end_flush();
?>
still doesn't send a compressed stream...
hoping to be the more clear that i can
greetings from italy
------------------------------------------------------------------------
[2003-12-13 13:59:24] iliaa@php.net
What makes you think ob_gzhandler is not working? Are you certain your
browser supports zlib encoding?
------------------------------------------------------------------------
[2003-12-13 04:48:03] sabio71 at hotmail dot com
Description:
------------
[configure line]
./configure --with-mysql --with-apache=../apache_1.3.29
[changes to php.ini]
for legacy reasons: register_globals = On
simply put, it seems it doesn't compress ...
i strongly believe is my fault, but i'm not able to figure why
i've tried also with "output_handler = ob_gzhandler" but nothing
Reproduce code:
---------------
[short script descripting]
<?php
ob_start("ob_gzhandler");
..
.
.
ob_end_flush();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26613&edit=1