]> granicus.if.org Git - php/commitdiff
MFH Fix bug #46738 - Segfault when mb_detect_encoding() fails.
authorScott MacVicar <scottmac@php.net>
Thu, 11 Dec 2008 02:56:45 +0000 (02:56 +0000)
committerScott MacVicar <scottmac@php.net>
Thu, 11 Dec 2008 02:56:45 +0000 (02:56 +0000)
ext/mbstring/mbstring.c

index 719c62b7277df6de2be0c0785451a8e1c8c5ca47..62d26fa2615afb64e915f142b464256c96917f4e 100644 (file)
@@ -3227,7 +3227,7 @@ PHP_FUNCTION(mb_detect_encoding)
        }
 
        if (ret == NULL) {
-               RETVAL_FALSE;
+               RETURN_FALSE;
        }
 
        RETVAL_STRING((char *)ret, 1);