Is output_handler set in your php.ini?

---John Holmes...

----- Original Message -----
From: "Serge Paquin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 2:24 PM
Subject: [PHP] ob_gzhandler bug???


> Here is a very simple APP to test my problem.  Below you can see my
> result.  This is done on PHP 4.3.0
>
> Serge.
>
> <?
> function ob_end_flush_all () {
> while ( ob_get_level() ) {
> ob_end_flush();
> }
> }
>
> function ob_spit_content_length ($buffer) {
> $len=strlen($buffer);
> if($len>0) {
> Header( "Content-Length: $len" );
> }
>
> return $buffer;
> }
>
> ob_start("ob_spit_content_length");
> ob_start("ob_gzhandler");
> ?>
> Test Message
> <?
> ob_end_flush_all();
> ?>
>
> Test:
> [serge@beamer ~]$ telnet beamer 91
> Trying 127.0.0.1...
> Connected to beamer.localdomain (127.0.0.1).
> Escape character is '^]'.
> GET /test.php HTTP/1.1
> Host: beamer:91
> Accept-Encoding: gzip
>
> HTTP/1.1 200 OK
> Date: Fri, 24 Jan 2003 19:22:12 GMT
> Server: Stronghold/3.0 Apache/1.3.22 RedHat/3015c (Unix) mod_ssl/2.8.4
OpenSSL/0.9.6b mod_perl/1.25
> Content-Length: 243
> Connection: close
> Content-Type: text/html
>
> Test Message
> <br />
> <b>Warning</b>:  ob_gzhandler() [<a
href='http://www.php.net/ref.outcontrol'>ref.outcontrol</a>]: output handler
'ob_gzhandler' cannot be used twice in
<b>/home/httpd/devel_planetcharter/test.php</b> on line <b>4</b><br />
> Connection closed by foreign host.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to