/php-src/ext/standard/tests/strings/ |
H A D | strrchr_variation4.phpt | 2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack' 5 /* Test strrchr() function by passing heredoc string containing special chars for haystack 27 $special_chars_str //needle as haystack
|
H A D | strpbrk_error.phpt | 5 $haystack = 'This is a Simple text.'; 9 strpbrk($haystack, '');
|
H A D | stripos_variation8.phpt | 2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument 10 $haystack = "aBAbaBAbaBabAbAbaBa"; 22 /* loop through to consider various offsets in getting the position of the needle in haystack strin… 26 for($offset = 0; $offset <= strlen($haystack); $offset++ ) { 27 var_dump( stripos($haystack, $needles[$index], $offset) );
|
H A D | stripos_variation5.phpt | 2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' … 5 /* Test stripos() function by passing heredoc string containing escape chars for haystack
|
H A D | strripos_variation5.phpt | 2 Test strripos() function : usage variations - heredoc string containing escape chars for 'haystack'… 5 /* Test strripos() function by passing heredoc string containing escape chars for haystack
|
H A D | strrpos_variation5.phpt | 2 Test strrpos() function : usage variations - heredoc string containing escape chars for 'haystack' … 5 /* Test strrpos() function by passing heredoc string containing escape chars for haystack
|
/php-src/ext/standard/tests/array/ |
H A D | in_array_variation2.phpt | 2 Test in_array() function : usage variations - different haystack values 5 /* Test in_array() with different possible haystack values */ 7 echo "*** Testing in_array() with different haystack values ***\n"; 46 *** Testing in_array() with different haystack values ***
|
H A D | array_search_variation3.phpt | 2 Test array_search() function : usage variations - haystack as sub-array/object 53 array_search(): Argument #2 ($haystack) must be of type array, array_search_check given 54 array_search(): Argument #2 ($haystack) must be of type array, array_search_check given
|
/php-src/ext/intl/tests/ |
H A D | bug61487.phpt | 23 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 24 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/php-src/ext/mbstring/tests/ |
H A D | mb_stripos_error2.phpt | 12 $haystack = 'Hello, world'; 18 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_strpos_error2.phpt | 12 $haystack = 'Hello, world'; 18 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_strripos_error2.phpt | 12 $haystack = 'Hello, world'; 18 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_stristr_error2.phpt | 11 $haystack = 'Hello, world'; 17 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strrchr_error2.phpt | 11 $haystack = 'Hello, world'; 17 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strrichr_error2.phpt | 11 $haystack = 'Hello, world'; 17 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strrpos_error2.phpt | 13 $haystack = 'This is an English string. 0123456789.'; 19 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
|
H A D | mb_strstr_error2.phpt | 11 $haystack = 'Hello, world'; 17 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
|
H A D | mb_substr_count_error2.phpt | 13 $haystack = 'Hello, World!'; 20 var_dump(mb_substr_count($haystack, $needle, $encoding));
|
H A D | mb_stripos_empty_needle.phpt | 73 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 76 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 91 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
H A D | mb_strpos_empty_needle.phpt | 72 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 75 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 87 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 90 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
H A D | mb_strripos_empty_needle.phpt | 73 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 76 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 88 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 91 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/php-src/ext/iconv/tests/ |
H A D | iconv_strpos_error2.phpt | 12 $haystack = 'Hello, world'; 17 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | iconv_strrpos_error2.phpt | 13 $haystack = 'This is an English string. 0123456789.'; 18 var_dump(iconv_strrpos($haystack, $needle , $encoding));
|
/php-src/ext/pdo_dblib/tests/ |
H A D | config.inc | 12 function strstartswith($haystack, $needle) { 13 return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
|
/php-src/Zend/ |
H A D | zend_operators.h | 166 const char *p = haystack; in zend_memnstr() 200 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr() 237 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr() 240 off_p = end - haystack; in zend_memnrstr() 252 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr() 259 } while (p-- >= haystack); in zend_memnrstr() 933 ZEND_ASSERT(end >= haystack); in zend_memnistr() 936 return haystack; in zend_memnistr() 939 if (UNEXPECTED(needle_len > (size_t)(end - haystack))) { in zend_memnistr() 945 const char *p_lower = (const char *)memchr(haystack, first_lower, end - haystack); in zend_memnistr() [all …]
|