From: Scott MacVicar Date: Thu, 11 Dec 2008 02:56:08 +0000 (+0000) Subject: Fix bug #46738 - Segfault when mb_detect_encoding() fails. X-Git-Tag: php-5.4.0alpha1~191^2~4833 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8497d6736569da65fbe8b6d721acc454d9e4d731;p=php Fix bug #46738 - Segfault when mb_detect_encoding() fails. --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 623b3678f7..1ce8aa9d45 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -3058,7 +3058,7 @@ PHP_FUNCTION(mb_detect_encoding) } if (ret == NULL) { - RETVAL_FALSE; + RETURN_FALSE; } RETVAL_STRING((char *)ret, 1);