cvs: php4(PHP_4_2_0) /ext/mbstring mbstring.c

From: Date: Tue, 23 Apr 2002 12:50:10 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/mbstring mbstring.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11342@lists.php.net to get a copy of this message
yohgaki Tue Apr 23 08:50:10 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/mbstring mbstring.c Log: MFH Fix empty output when no conversion is done. Fix possible problem with wide chars. Index: php4/ext/mbstring/mbstring.c diff -u php4/ext/mbstring/mbstring.c:1.48.2.4 php4/ext/mbstring/mbstring.c:1.48.2.5 --- php4/ext/mbstring/mbstring.c:1.48.2.4 Sun Apr 14 04:12:36 2002 +++ php4/ext/mbstring/mbstring.c Tue Apr 23 08:50:10 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mbstring.c,v 1.48.2.4 2002/04/14 08:12:36 hirokawa Exp $ */ +/* $Id: mbstring.c,v 1.48.2.5 2002/04/23 12:50:10 yohgaki Exp $ */ /* * PHP4 Multibyte String module "mbstring" (currently only for Japanese) @@ -1473,8 +1473,7 @@ MBSTRG(outconv) = NULL; } if (encoding == mbfl_no_encoding_pass) { - RETVAL_STRING(arg_string, 1); - return; + RETRUN_STRINGL(arg_string, arg_string_len, 1); } /* if content-type is not yet set, set it and activate the converter */ if (SG(sapi_headers).send_default_content_type ) { @@ -1497,10 +1496,7 @@ /* just return if the converter is not activated. */ if (MBSTRG(outconv) == NULL) { - zval_dtor(return_value); - Z_STRVAL_P(return_value) = arg_string; - zval_copy_ctor(return_value); - return; + RETURN_STRINGL(arg_string, arg_string_len, 1); } /* flag */

« previous php.cvs (#11342) next »