summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-12-30 02:17:30 +0000
committerFelipe Pena <felipe@php.net>2008-12-30 02:17:30 +0000
commit9212a9584e0e6815a42b39b96aef0859c89d8e6e (patch)
treef5e8c011911ccc109885903115517fdf8686f517 /ext/mbstring/mbstring.c
parentc168107cbf95af833689c14e51ac9feae8574161 (diff)
downloadphp-git-9212a9584e0e6815a42b39b96aef0859c89d8e6e.tar.gz
- MFH: Bug #46763 (mb_stristr() wrong output when needle does not exist) (patch by Henrique M. Decaria)
Diffstat (limited to 'ext/mbstring/mbstring.c')
-rw-r--r--ext/mbstring/mbstring.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 2bd4fdd388..a4cd45c24d 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -2555,7 +2555,8 @@ PHP_FUNCTION(mb_strrchr)
PHP_FUNCTION(mb_stristr)
{
zend_bool part = 0;
- unsigned int n, from_encoding_len, len, mblen;
+ unsigned int from_encoding_len, len, mblen;
+ int n;
mbfl_string haystack, needle, result, *ret = NULL;
const char *from_encoding = mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding));
mbfl_string_init(&haystack);