Re: Re: output handlers
| From: | (Marcus Börger) | Date: | Thu, 08 Aug 2002 09:48:22 +0000 |
| Subject: | Re: Re: output handlers | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86630@lists.php.net to get a copy of this message | ||
Minor corrections and the patch will contain a second NOTE.
========== start ============
; 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 set set output handler by 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_inconv_handler"
; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
output_handler =
=========== end ==============
marcus
At 07:01 08.08.2002, Yasuo Ohgaki wrote:
Yasuo Ohgaki wrote:It's inconvenient/convenient like magic_qoute_gpc. If output handler is commonly used, programmers have to check if incompatible handler is registered in php.ini or not. Otherwise it may be end up with meaningless output/error. (For example, iconv handler should not be used with mbstring handler. The same applies to input handler...) Marcus and my idea is detecting wrong usage of output handlers. However, it's not only bug prone, but also the resolution introduces new issues as described. The best approch is not using the output_handler directive in php.ini. Any objection for discouraging output_handler usage?Here is draft for new description. ========== start ============ ; You can redirect all of the output of your scripts to a function. For ; example, if you set output_handler to "mb_output_handler", charactor ; encoding will be transparently converted specified encoding. ; Setting an output handler automatically turns on output buffering. ; NOTE: People who wrote portable scripts should not depend on this ini ; directive. Set output handler by ob_start(). Using this ini ; directive may cause problems unless you know what script is doing. output_handler = =========== end ============== Any comments? -- Yasuo Ohgaki