From: Antony Dovgal Date: Fri, 12 Jan 2007 12:06:33 +0000 (+0000) Subject: fix folding and ws X-Git-Tag: RELEASE_1_0_0RC1~288 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=521a03c0984936b0bb8204229a440160cdc2ab70;p=php fix folding and ws --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index eb73831e9f..be95046cb9 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1740,7 +1740,7 @@ PHP_FUNCTION(mb_stripos) RETURN_FALSE; } - n = php_mb_stripos(0, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC); + n = php_mb_stripos(0, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC); if (n >= 0) { RETVAL_LONG(n); @@ -1770,7 +1770,7 @@ PHP_FUNCTION(mb_strripos) RETURN_FALSE; } - n = php_mb_stripos(1, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC); + n = php_mb_stripos(1, old_haystack, old_haystack_len, old_needle, old_needle_len, offset, from_encoding TSRMLS_CC); if (n >= 0) { RETVAL_LONG(n); @@ -1954,6 +1954,7 @@ PHP_FUNCTION(mb_stristr) } } } +/* }}} */ /* {{{ proto string mb_strrichr(string haystack, string needle[, bool part[, string encoding]]) Finds the last occurrence of a character in a string within another, case insensitive */ @@ -1981,7 +1982,7 @@ PHP_FUNCTION(mb_strrichr) RETURN_FALSE; } - n = php_mb_stripos(1, haystack.val, haystack.len, needle.val, needle.len, 0, from_encoding TSRMLS_CC); + n = php_mb_stripos(1, haystack.val, haystack.len, needle.val, needle.len, 0, from_encoding TSRMLS_CC); if (n <0) { RETURN_FALSE; @@ -2006,6 +2007,7 @@ PHP_FUNCTION(mb_strrichr) } } } +/* }}} */ /* {{{ proto int mb_substr_count(string haystack, string needle [, string encoding]) Count the number of substring occurrences */ @@ -4252,6 +4254,7 @@ MBSTRING_API int php_mb_gpc_encoding_converter(char **str, int *len, int num, co return ret ? 0 : -1; } +/* }}} */ /* {{{ MBSTRING_API int php_mb_gpc_encoding_detector() */