Home
last modified time | relevance | path

Searched refs:stripos (Results 1 – 25 of 31) sorted by relevance

12

/PHP-8.0/ext/standard/tests/strings/
H A Dstripos.phpt2 stripos() function test
13 var_dump(stripos("", ""));
14 var_dump(stripos("a", ""));
15 var_dump(stripos("", "a"));
16 var_dump(stripos("a", " "));
17 var_dump(stripos("a", "a"));
18 var_dump(stripos("", 1));
19 var_dump(stripos("", false));
20 var_dump(stripos("", true));
21 var_dump(stripos("a", 1));
[all …]
H A Dstripos_basic2.phpt12 var_dump( stripos("Hello, World", "Hello", 0) );
13 var_dump( stripos("Hello, World", 'Hello', 1) );
14 var_dump( stripos('Hello, World', 'WORLD', 1) );
15 var_dump( stripos('Hello, World', "WoRld", 5) );
22 var_dump( stripos($heredoc_str, 'Hello', 0) );
23 var_dump( stripos($heredoc_str, 'Hello', 1) );
30 var_dump( stripos("Hello, World", "o", 3) );
31 var_dump( stripos("Hello, World", "O", 5) );
32 var_dump( stripos("Hello, World", "o", 6) );
33 var_dump( stripos("Hello, World", "o", 10) );
[all …]
H A Dstripos_basic1.phpt12 var_dump( stripos("Hello, World", "Hello") );
13 var_dump( stripos('Hello, World', "hello") );
14 var_dump( stripos("Hello, World", 'World') );
15 var_dump( stripos('Hello, World', 'WORLD') );
18 var_dump( stripos("Hello, World", "o") );
19 var_dump( stripos("Hello, World", ",") );
22 var_dump( stripos($heredoc_str, "Hello, World") );
23 var_dump( stripos($heredoc_str, 'Hello') );
24 var_dump( stripos($heredoc_str, $heredoc_str) );
27 var_dump( stripos("Hello, World", "ooo") );
[all …]
H A Dstripos_variation4.phpt2 Test stripos() function : usage variations - heredoc string containing special chars for 'haystack'…
5 /* Test stripos() function by passing heredoc string containing special chars for haystack
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
16 var_dump( stripos($special_chars_str, "Ex'ple", 0) );
17 var_dump( stripos($special_chars_str, "!@@!", 23) );
18 var_dump( stripos($special_chars_str, '_') );
19 var_dump( stripos($special_chars_str, '("_")') );
20 var_dump( stripos($special_chars_str, "$*") );
21 var_dump( stripos($special_chars_str, "$*", 10) );
22 var_dump( stripos($special_chars_str, "(special)") );
[all …]
H A Dstripos_variation7.phpt2 Test stripos() function : usage variations - empty heredoc string for 'haystack' argument
5 /* Test stripos() function by passing empty heredoc string for haystack
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
13 var_dump( stripos($empty_string, "") );
16 stripos($empty_string, "", 1);
20 var_dump( stripos($empty_string, FALSE) );
21 var_dump( stripos($empty_string, NULL) );
26 *** Testing stripos() function: with heredoc strings ***
29 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstripos_variation11.phpt5 /* Test stripos() function with unexpected inputs for 'haystack' and 'needle' arguments */
74 // loop through each element of the array and check the working of stripos()
80 var_dump( stripos($values[$index], $values[$index]) );
85 var_dump( stripos($values[$index], $values[$index], 1) );
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
[all …]
H A Dstripos_variation3.phpt2 Test stripos() function : usage variations - multi line heredoc string for 'haystack' argument
5 /* Test stripos() function by passing multi-line heredoc string for haystack and
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
16 var_dump( stripos($multi_line_str, "ing", 0) );
17 var_dump( stripos($multi_line_str, "ing", 15) );
18 var_dump( stripos($multi_line_str, "ing", 22) );
19 var_dump( stripos($multi_line_str, "") );
20 var_dump( stripos($multi_line_str, " ") );
25 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation5.phpt2 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
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
15 var_dump( stripos($control_char_str, "\n") );
16 var_dump( stripos($control_char_str, "\t") );
17 var_dump( stripos($control_char_str, "\n", 12) );
18 var_dump( stripos($control_char_str, "\t", 15) );
23 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation6.phpt2 Test stripos() function : usage variations - heredoc string containing quotes for 'haystack' argume…
5 /* Test stripos() function by passing heredoc string containing quotes for haystack
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
17 var_dump( stripos($quote_char_str, "line") );
18 var_dump( stripos($quote_char_str, 'things') );
19 var_dump( stripos($quote_char_str, 'things', 0) );
20 var_dump( stripos($quote_char_str, "things", 20) );
24 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_error.phpt2 Test stripos() function : error conditions
5 echo "*** Testing stripos() function: error conditions ***\n";
9 stripos("Hello World", "o", 12);
16 stripos("Hello World", "o", -12);
24 *** Testing stripos() function: error conditions ***
27 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
30 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstripos_variation12.phpt2 Test stripos() function : usage variations - null terminated strings for 'haystack' argument
5 /* Test stripos() function with null terminated strings for 'haystack' argument
9 echo "*** Test stripos() function: binary safe ***\n";
21 var_dump( stripos($haystacks[$index], "\0") );
22 var_dump( stripos($haystacks[$index], "\0", $index) );
27 *** Test stripos() function: binary safe ***
H A Dstripos_variation10.phpt2 Test stripos() function : usage variations - unexpected inputs for 'needle' argument
5 /* Test stripos() function with unexpected inputs for 'needle' and
9 echo "*** Testing stripos() function with unexpected values for needle ***\n";
82 var_dump( stripos($haystack, $needles[$index]) );
94 *** Testing stripos() function with unexpected values for needle ***
124 stripos(): Argument #2 ($needle) must be of type string, array given
127 stripos(): Argument #2 ($needle) must be of type string, array given
130 stripos(): Argument #2 ($needle) must be of type string, array given
133 stripos(): Argument #2 ($needle) must be of type string, array given
136 stripos(): Argument #2 ($needle) must be of type string, array given
[all …]
H A Dstripos_variation13.phpt2 Test stripos() function : usage variations - null terminated strings for 'needle' argument
5 /* Test stripos() function with null terminated strings for 'needle' argument
9 echo "*** Test stripos() function: binary safe ***\n";
23 var_dump( stripos($haystack, $needles[$index]) );
24 var_dump( stripos($haystack, $needles[$index], $index) );
29 *** Test stripos() function: binary safe ***
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 */
7 echo "*** Testing stripos() function: with single quoted strings ***\n";
75 var_dump( stripos($haystack, $needle[$index]) );
76 var_dump( stripos($haystack, $needle[$index], $index) );
82 *** Testing stripos() function: with single quoted strings ***
H A Dstripos_variation1.phpt2 Test stripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argume…
5 /* Test stripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
7 echo "*** Testing stripos() function: with double quoted strings ***\n";
73 var_dump( stripos($haystack, $needle[$index]) );
74 var_dump( stripos($haystack, $needle[$index], $index) );
80 *** Testing stripos() function: with double quoted strings ***
H A Dstripos_variation8.phpt2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument
5 /* Test stripos() function with strings containing repetitive chars for haystak
9 echo "*** Testing stripos() function: strings repetitive chars ***\n";
27 var_dump( stripos($haystack, $needles[$index], $offset) );
34 *** Testing stripos() function: strings repetitive chars ***
H A Dbug40754.phpt26 stripos("abcde", "abc", $v);
50 stripos("abcde", "abc", $v);
85 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.0/ext/mbstring/tests/
H A Dbug45923.phpt24 section('stripos' , "abc abc abc" , "abc");
80 ------- stripos -----------
93 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
101 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.0/sapi/cli/tests/
H A Dbug64878.phpt15 return stripos($value, 'Content-Type') === 0;
/PHP-8.0/tests/run-test/
H A Dbug75042.phpt6 if (false !== stripos(`$php -n -m`, 'openssl')) {
/PHP-8.0/Zend/tests/
H A Dbug54910.phpt7 if (stripos($method, 'get') === 0) {
/PHP-8.0/ext/oci8/tests/
H A Ddrcp_cclass1.phpt9 if (strpos($dbase, "/") !== false && stripos($dbase, ":pooled") === false)
H A Ddrcp_privileged.phpt9 if (strpos($dbase, "/") !== false && stripos($dbase, ":pooled") === false)
/PHP-8.0/ext/mysqli/tests/
H A Dmysqli_pconn_max_links.phpt142 $phpinfo = substr($phpinfo, stripos($phpinfo, 'MysqlI Support => enabled'), 500);
180 $phpinfo = substr($phpinfo, stripos($phpinfo, 'MysqlI Support => enabled'), 500);
/PHP-8.0/ext/standard/tests/file/windows_acls/
H A Dcommon.inc16 if(stripos(php_uname(), 'XP') !== FALSE) {

Completed in 29 milliseconds

12