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

index 623b3678f7c8e4d9a3607a41317f13b8a8fd4819..1ce8aa9d4508241bbc820b1eaa89b5a16df77ae4 100644 (file)
@@ -3058,7 +3058,7 @@ PHP_FUNCTION(mb_detect_encoding)
        }
 
        if (ret == NULL) {
-               RETVAL_FALSE;
+               RETURN_FALSE;
        }
 
        RETVAL_STRING((char *)ret, 1);