1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

MFH Fix bug #46738 - Segfault when mb_detect_encoding() fails.

This commit is contained in:
Scott MacVicar
2008-12-11 02:56:45 +00:00
parent 1f4fd81a27
commit 7877cbdcfc

View File

@@ -3227,7 +3227,7 @@ PHP_FUNCTION(mb_detect_encoding)
}
if (ret == NULL) {
RETVAL_FALSE;
RETURN_FALSE;
}
RETVAL_STRING((char *)ret, 1);