From: Derick Rethans Date: Tue, 19 Aug 2003 08:34:51 +0000 (+0000) Subject: - MFH: Fix for bug #25140 (mb_convert_encoding returns FALSE when it tries to X-Git-Tag: php-4.3.3~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39a8fc274ab2d953a9d3cf624e1d2927e22bf590;p=php - MFH: Fix for bug #25140 (mb_convert_encoding returns FALSE when it tries to convert empty string) --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index b0939cebc1..6c0686c828 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -2625,7 +2625,7 @@ PHP_FUNCTION(mb_convert_encoding) if (ret != NULL) { RETVAL_STRINGL(ret, size, 0); /* the string is already strdup()'ed */ } else { - RETVAL_FALSE; + RETVAL_STRINGL("", 0, 1); } if ( s_free) { efree(s_free);