]> 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:12:36 +0000 (08:12 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sun, 14 Apr 2002 08:12:36 +0000 (08:12 +0000)
ext/mbstring/mbstring.c

index 7868a8b073528c3125a8afb02ab973d02efc96fa..6fd7508ab207f4a94a3d71c6d51f342807552cd0 100644 (file)
@@ -1472,6 +1472,10 @@ PHP_FUNCTION(mb_output_handler)
                        mbfl_buffer_converter_delete(MBSTRG(outconv));
                        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;