]> granicus.if.org Git - php/commitdiff
fixed error output handler when 'pass' is choosed as output encoding.
authorRui Hirokawa <hirokawa@php.net>
Sun, 14 Apr 2002 08:18:55 +0000 (08:18 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sun, 14 Apr 2002 08:18:55 +0000 (08:18 +0000)
ext/mbstring/mbstring.c

index a776d4cb045143adf7bbbdeeea7be70bfe99c00b..67a4501474ba119ba85d3ae6c1342cd2ca79dcaa 100644 (file)
@@ -1536,6 +1536,10 @@ PHP_FUNCTION(mb_output_handler)
                        mbfl_buffer_converter_delete(MBSTRG(outconv) TSRMLS_CC);
                        MBSTRG(outconv) = NULL;
                }
+               if (encoding == mbfl_no_encoding_pass) {
+                       RETVAL_STRING(arg_string, 1);
+                       return;
+               }
                /* if content-type is not yet set, set it and activate the converter */
                if (SG(sapi_headers).send_default_content_type ) {
                        mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE;