Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 25 of 125) sorted by relevance

12345

/PHP-8.0/ext/standard/tests/strings/
H A Dstrripos_variation6.phpt5 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
7 var_dump(strlen($haystack));
9 var_dump( strripos($haystack, "", -1) );
10 var_dump( strripos($haystack, "", -10) );
11 var_dump( strripos($haystack, "", -26) );
12 var_dump( strripos($haystack, "", -44) );
H A Dstrrpos_variation14.phpt5 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
7 var_dump(strlen($haystack));
9 var_dump( strrpos($haystack, "", -1) );
10 var_dump( strrpos($haystack, "", -10) );
11 var_dump( strrpos($haystack, "", -26) );
12 var_dump( strrpos($haystack, "", -44) );
H A Dstrrpos_variation11.phpt5 /* Test strrpos() function with unexpected inputs for 'haystack' and 'needle' arguments */
78 $haystack = $values[$index];
96 *** Testing strrpos() function with unexpected values for haystack and needle ***
125 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
126 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
128 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
129 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
131 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
132 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
134 TypeError: strrpos(): Argument #1 ($haystack) must be of type string, array given
[all …]
H A Dstripos_variation11.phpt5 /* Test stripos() function with unexpected inputs for 'haystack' and 'needle' arguments */
78 $haystack = $values[$index];
95 *** Testing stripos() function with unexpected values for haystack and needle ***
124 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
125 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
127 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
128 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
130 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
131 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
133 TypeError: stripos(): Argument #1 ($haystack) must be of type string, array given
[all …]
H A Dstrrpos_negative_offset.phpt6 var_dump(strrpos("haystack", 'h', -8));
7 var_dump(strrpos("haystack", 'k', -1));
8 var_dump(strrpos("haystack", "ka", -1));
9 var_dump(strrpos("haystack", 'a', -3));
10 var_dump(strrpos("haystack", 'a', -4));
12 strrpos("haystack", 'h', -9);
35 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
42 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dbug60801.phpt5 $haystack = "foob\x00ar";
8 var_dump(strpbrk($haystack, 'ar'));
9 var_dump(strpbrk($haystack, "\x00"));
10 var_dump(strpbrk($haystack, $needle));
14 var_dump(strpbrk($haystack, 'xyz'));
H A Dstrrpos_variation8.phpt2 Test strrpos() function : usage variations - repetitive chars for 'haystack' argument
5 … Test strrpos() function with strings containing multiple occurrences of 'needle' in the 'haystack'
10 $haystack = "ababababAbaBa";
13 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
15 for($offset = -1; $offset <= strlen($haystack); $offset++ ) {
17 var_dump( strrpos($haystack, $needle, $offset) );
H A Dstrrchr_variation11.phpt2 Test strrchr() function : usage variations - unexpected inputs for haystack and needle
5 /* Test strrchr() function with unexpected inputs for haystack and needle */
7 echo "*** Testing strrchr() function: with unexpected inputs for haystack and needle ***\n";
91 *** Testing strrchr() function: with unexpected inputs for haystack and needle ***
111 strrchr(): Argument #1 ($haystack) must be of type string, array given
113 strrchr(): Argument #1 ($haystack) must be of type string, array given
115 strrchr(): Argument #1 ($haystack) must be of type string, array given
117 strrchr(): Argument #1 ($haystack) must be of type string, array given
119 strrchr(): Argument #1 ($haystack) must be of type string, array given
139 strrchr(): Argument #1 ($haystack) must be of type string, resource given
H A Dbug40754.phpt83 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
85 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
88 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrripos_variation1.phpt2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum…
5 /* Test strripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
8 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
57 $haystack //haystack as needle
60 /* loop through to get the position of the needle in haystack string */
64 var_dump( strripos($haystack, $needle) );
65 var_dump( strripos($haystack, $needle, 1) );
66 var_dump( strripos($haystack, $needle, 20) );
67 var_dump( strripos($haystack, $needle, -1) );
H A Dstrripos_variation2.phpt2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum…
5 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
8 $haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
58 $haystack //haystack as needle
61 /* loop through to get the position of the needle in haystack string */
65 var_dump( strripos($haystack, $needle) );
66 var_dump( strripos($haystack, $needle, 1) );
67 var_dump( strripos($haystack, $needle, 20) );
68 var_dump( strripos($haystack, $needle, -1) );
H A Dstrrpos_variation1.phpt2 Test strrpos() function : usage variations - double quoted strings for 'haystack' & 'needle' argume…
5 /* Test strrpos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
8 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
57 $haystack //haystack as needle
60 /* loop through to get the position of the needle in haystack string */
64 var_dump( strrpos($haystack, $needle[$index]) );
65 var_dump( strrpos($haystack, $needle[$index], $index) );
H A Dstripos_variation2.phpt2 Test stripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Test stripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
8 $haystack = 'Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 ';
68 $haystack //haystack as needle
71 /* loop through to get the position of the needle in haystack string */
75 var_dump( stripos($haystack, $needle[$index]) );
76 var_dump( stripos($haystack, $needle[$index], $index) );
H A Dstrrpos_variation2.phpt2 Test strrpos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Test strrpos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
8 $haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
58 $haystack //haystack as needle
61 /* loop through to get the position of the needle in haystack string */
65 var_dump( strrpos($haystack, $needle[$index]) );
66 var_dump( strrpos($haystack, $needle[$index], $index) );
/PHP-8.0/ext/mbstring/tests/
H A Dbug45923.phpt8 function section($func, $haystack, $needle)
14 var_dump($func($haystack, $needle, $offset));
47 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
70 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
78 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
101 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
139 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
147 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
H A Dmb_strpos_offset_errors.phpt49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
50 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
51 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
52 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
53 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
54 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
56 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_stripos_invalid_offset.phpt84 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
85 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 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)
89 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 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)
92 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strpos_invalid_offset.phpt84 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
85 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 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)
88 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 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)
91 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_stripos_variation5_Bug45923.phpt53 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 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)
95 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
97 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
101 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
103 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
107 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
109 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strpos_variation5.phpt53 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
95 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
97 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
101 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
103 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
107 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
109 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strripos_variation5_Bug45923.phpt78 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
80 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
84 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
96 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
98 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.0/ext/intl/tests/
H A Dbug61860.phpt7 $haystack = 'Auf der Straße nach Paris habe ich mit dem Fahrer gesprochen';
9 grapheme_stripos($haystack, 'pariS '),
10 grapheme_stristr($haystack, 'paRis '),
11 grapheme_substr($haystack, grapheme_stripos($haystack, 'Paris'))
H A Dgrapheme_out_of_bounds.phpt209 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
210 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
211 grapheme_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
213 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
214 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
215 grapheme_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
218 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
219 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
222 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
227 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
/PHP-8.0/ext/intl/grapheme/
H A Dgrapheme_string.c104 char *haystack, *needle; in PHP_FUNCTION() local
131 found = php_memnstr(haystack + noffset, needle, needle_len, haystack + haystack_len); in PHP_FUNCTION()
135 RETURN_LONG(found - haystack); in PHP_FUNCTION()
154 char *haystack, *needle; in PHP_FUNCTION() local
216 char *haystack, *needle; in PHP_FUNCTION() local
271 char *haystack, *needle; in PHP_FUNCTION() local
545 char *haystack, *needle; in strstr_common_handler() local
558 found = php_memnstr(haystack, needle, needle_len, haystack + haystack_len); in strstr_common_handler()
567 size_t found_offset = found - haystack; in strstr_common_handler()
570 RETURN_STRINGL(haystack, found_offset); in strstr_common_handler()
[all …]
/PHP-8.0/ext/iconv/tests/
H A Diconv_strpos_variation5.phpt55 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
57 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
97 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
99 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
103 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
105 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
109 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
111 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)

Completed in 33 milliseconds

12345