diff options
| author | Scott MacVicar <scottmac@php.net> | 2008-12-11 02:56:45 +0000 |
|---|---|---|
| committer | Scott MacVicar <scottmac@php.net> | 2008-12-11 02:56:45 +0000 |
| commit | 7877cbdcfc1992febcf78bf98d81bc754c76fce3 (patch) | |
| tree | 0336f10249badd9119a6395d0e21764ea66f94bf | |
| parent | 1f4fd81a275ea7295499bb086d48fb182d0feeda (diff) | |
| download | php-git-7877cbdcfc1992febcf78bf98d81bc754c76fce3.tar.gz | |
MFH Fix bug #46738 - Segfault when mb_detect_encoding() fails.
| -rw-r--r-- | ext/mbstring/mbstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 719c62b727..62d26fa261 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -3227,7 +3227,7 @@ PHP_FUNCTION(mb_detect_encoding) } if (ret == NULL) { - RETVAL_FALSE; + RETURN_FALSE; } RETVAL_STRING((char *)ret, 1); |
