From 39a8fc274ab2d953a9d3cf624e1d2927e22bf590 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 19 Aug 2003 08:34:51 +0000 Subject: [PATCH] - MFH: Fix for bug #25140 (mb_convert_encoding returns FALSE when it tries to convert empty string) --- ext/mbstring/mbstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0