We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4455c3 commit e8ae192Copy full SHA for e8ae192
ext/standard/string.c
@@ -2196,7 +2196,7 @@ PHP_FUNCTION(strripos)
2196
php_error_docref(NULL, E_WARNING, "Offset is greater than the length of haystack string");
2197
RETURN_FALSE;
2198
}
2199
- e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) + (size_t)offset;
+ e = ZSTR_VAL(haystack) + (ZSTR_LEN(haystack) + (size_t)offset);
2200
2201
/* Borrow that ord_needle buffer to avoid repeatedly tolower()ing needle */
2202
*ZSTR_VAL(ord_needle) = tolower(*ZSTR_VAL(needle));
0 commit comments