Discussion:
'ob_gzhandler' conflicts with 'zlib output compression'
Ronald Wiplinger
2003-05-26 09:24:35 UTC
Permalink
I have upgraded to Apache 2.0.45 and PHP-4.3.2RC2 and find now many lines in the apache log files:

[client 192.168.250.117] PHP Warning: ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /usr/local/httpd/virtual/e-paper.elmit.com/htdocs/mainfile.php on line 19

What have I missed? What does it do to the browser?

bye

Ronald
--
Ronald Wiplinger (CEO of ELMIT)
http://www.elmit.com +886 (0) 915 653-452
- I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org


PS: Spam prevention!
Our system is protected with a spam prevention program.
If you send us an e-mail, our system will send you a confirmation message back. Just reply to this confirmation message please.
After receiving this confirmation message, our system will send the hold message (one) and all future messages (after the received confirmation message) to me without asking you again.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Evan Nemerson
2003-05-27 01:18:53 UTC
Permalink
Guess: zlib output cmpression is being turned on in your php.ini and you're
trying to se ob_gzhandler in your ob_start in mainfile.php on line 19, which
would basically ask PHP to compress your output twice.
; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
; directive. Instead, explicitly set the output handler using
ob_start().
; Using this ini directive may cause problems unless you know what
script
; is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
;output_handler =

effects on browser: dunno. depends on whether php obeys you without question
or tries to cover up your mistake.

solution: your output is already being compressed. don't try to do it again in
mainfile.php
Post by Ronald Wiplinger
I have upgraded to Apache 2.0.45 and PHP-4.3.2RC2 and find now many lines
[client 192.168.250.117] PHP Warning: ob_start(): output handler
'ob_gzhandler' conflicts with 'zlib output compression' in
/usr/local/httpd/virtual/e-paper.elmit.com/htdocs/mainfile.php on line 19
What have I missed? What does it do to the browser?
bye
Ronald
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...