diff options
author | Felipe Pena <felipe@php.net> | 2008-12-30 02:17:30 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-12-30 02:17:30 +0000 |
commit | 9212a9584e0e6815a42b39b96aef0859c89d8e6e (patch) | |
tree | f5e8c011911ccc109885903115517fdf8686f517 /ext/mbstring/mbstring.c | |
parent | c168107cbf95af833689c14e51ac9feae8574161 (diff) | |
download | php-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.c | 3 |
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); |