Lines Matching refs:haystack_dup
172 char *haystack, *needle, *haystack_dup, *needle_dup; in PHP_FUNCTION() local
207 haystack_dup = estrndup(haystack, haystack_len); in PHP_FUNCTION()
208 php_strtolower(haystack_dup, haystack_len); in PHP_FUNCTION()
210 found = php_memnstr(haystack_dup + noffset, needle_dup, needle_len, haystack_dup + haystack_len); in PHP_FUNCTION()
212 efree(haystack_dup); in PHP_FUNCTION()
216 RETURN_LONG(found - haystack_dup); in PHP_FUNCTION()
335 char *needle_dup, *haystack_dup; in PHP_FUNCTION() local
339 haystack_dup = estrndup(haystack, haystack_len); in PHP_FUNCTION()
340 php_strtolower(haystack_dup, haystack_len); in PHP_FUNCTION()
342 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
344 efree(haystack_dup); in PHP_FUNCTION()