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:
@@ -3227,7 +3227,7 @@ PHP_FUNCTION(mb_detect_encoding)
|
||||
}
|
||||
|
||||
if (ret == NULL) {
|
||||
RETVAL_FALSE;
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
RETVAL_STRING((char *)ret, 1);
|
||||
|
||||
Reference in New Issue
Block a user