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 4bd3a90 commit 9300a50Copy full SHA for 9300a50
ext/standard/string.c
@@ -2109,13 +2109,11 @@ PHP_FUNCTION(strripos)
2109
needle_dup = zend_string_tolower(needle);
2110
if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
2111
RETVAL_LONG(found - ZSTR_VAL(haystack_dup));
2112
- zend_string_release_ex(needle_dup, 0);
2113
- zend_string_release_ex(haystack_dup, 0);
2114
} else {
2115
2116
2117
- RETURN_FALSE;
+ RETVAL_FALSE;
2118
}
+ zend_string_release_ex(needle_dup, false);
+ zend_string_release_ex(haystack_dup, false);
2119
2120
/* }}} */
2121
0 commit comments