Home
last modified time | relevance | path

Searched refs:strripos (Results 1 – 17 of 17) sorted by relevance

/PHP-7.4/ext/standard/tests/strings/
H A Dstrripos.phpt2 strripos() function
5 var_dump(strripos("test test string", "test"));
9 var_dump(strripos("test string", "g"));
11 var_dump(strripos("tEst", "test"));
12 var_dump(strripos("teSt", "test"));
13 var_dump(@strripos("foo", "f", 1));
14 var_dump(@strripos("", ""));
15 var_dump(@strripos("a", ""));
16 var_dump(@strripos("", "a"));
17 var_dump(@strripos("\\\\a", "\\a"));
[all …]
H A Dstrripos_basic2.phpt16 var_dump( strripos("Hello, World", "HeLLo", 0) );
17 var_dump( strripos("Hello, World", 'Hello', 1) );
18 var_dump( strripos('Hello, World', 'world', 1) );
19 var_dump( strripos('Hello, World', "WorLD", 5) );
23 var_dump( strripos($heredoc_str, 'HelLo', 0) );
24 var_dump( strripos($heredoc_str, 'HeLLo', 1) );
29 var_dump( strripos("Hello, World", "O", 3) );
30 var_dump( strripos("Hello, World", "O", 6) );
31 var_dump( strripos("Hello, World", "O", 10) );
34 var_dump( strripos("Hello, World", "O", -1) );
[all …]
H A Dstrripos_offset.phpt2 strripos() offset integer overflow
6 var_dump(strripos("t", "t", PHP_INT_MAX+1));
7 var_dump(strripos("tttt", "tt", PHP_INT_MAX+1));
8 var_dump(strripos(100, 101, PHP_INT_MAX+1));
9 var_dump(strripos(1024, 1024, PHP_INT_MAX+1));
10 var_dump(strripos(array(), array(), PHP_INT_MAX+1));
11 var_dump(strripos(1024, 1024, -PHP_INT_MAX));
12 var_dump(strripos(1024, "te", -PHP_INT_MAX));
13 var_dump(strripos(1024, 1024, -PHP_INT_MAX-1));
14 var_dump(strripos(1024, "te", -PHP_INT_MAX-1));
[all …]
H A Dstrripos_basic1.phpt16 var_dump( strripos("Hello, World", "HeLLo") );
17 var_dump( strripos('Hello, World', "hello") );
18 var_dump( strripos("Hello, World", 'WoRLd') );
19 var_dump( strripos('Hello, World', 'WORLD') );
20 var_dump( strripos('Hello, World', 'foo') );
23 var_dump( strripos("Hello, World", "O") );
24 var_dump( strripos("Hello, World", ",") );
27 var_dump( strripos($heredoc_str, "Hello, WoRLd") );
28 var_dump( strripos($heredoc_str, 'HelLO') );
29 var_dump( strripos($heredoc_str, $heredoc_str) );
[all …]
H A Dstrripos_variation3.phpt23 var_dump( strripos($multi_line_str, "iNg", 0) );
24 var_dump( strripos($multi_line_str, "inG", 15) );
25 var_dump( strripos($multi_line_str, "Ing", 22) );
28 var_dump( strripos($multi_line_str, "Ing", -1) );
29 var_dump( strripos($multi_line_str, "Ing", -17) );
30 var_dump( strripos($multi_line_str, "Ing", -50) );
33 var_dump( strripos($multi_line_str, "spAn") );
34 var_dump( strripos($multi_line_str, "IPlE") );
35 var_dump( strripos($multi_line_str, "") );
36 var_dump( strripos($multi_line_str, " ") );
[all …]
H A Dstrripos_variation4.phpt5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
10 /* Test strripos() function by passing heredoc string containing special chars for haystack
14 echo "*** Testing strripos() function: with heredoc strings ***\n";
21 var_dump( strripos($special_chars_str, "Ex'pLE", 0) );
22 var_dump( strripos($special_chars_str, "!@@!", 23) );
23 var_dump( strripos($special_chars_str, '_') );
24 var_dump( strripos($special_chars_str, '("_")') );
25 var_dump( strripos($special_chars_str, "$*") );
26 var_dump( strripos($special_chars_str, "$*", 10) );
27 var_dump( strripos($special_chars_str, "(speCIal)") );
[all …]
H A Dstrripos_variation5.phpt2 Test strripos() function : usage variations - heredoc string containing escape chars for 'haystack'…
5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
10 /* Test strripos() function by passing heredoc string containing escape chars for haystack
14 echo "*** Testing strripos() function: with heredoc strings ***\n";
20 var_dump( strripos($control_char_str, "\n") );
21 var_dump( strripos($control_char_str, "\t") );
22 var_dump( strripos($control_char_str, "\n", 12) );
23 var_dump( strripos($control_char_str, "\t", 15) );
28 *** Testing strripos() function: with heredoc strings ***
H A Dstrrpos_negative_offset.phpt13 var_dump(strripos("HAYSTHACk", 'ha', -9));
14 var_dump(strripos("HAYSTACK", 'h', -8));
15 var_dump(strripos("HAYSTACK", 'k', -1));
16 var_dump(strripos("HAYSTACK", "ka", -1));
17 var_dump(strripos("HAYSTACK", 'a', -3));
18 var_dump(strripos("HAYSTACK", 'a', -4));
19 var_dump(@strripos("HAYSTACK", 'h', -9));
H A Dstrripos_variation2.phpt2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum…
5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
12 echo "*** Testing strripos() function: with single quoted strings ***\n";
70 var_dump( strripos($haystack, $needle) );
71 var_dump( strripos($haystack, $needle, 1) );
72 var_dump( strripos($haystack, $needle, 20) );
73 var_dump( strripos($haystack, $needle, -1) );
79 *** Testing strripos() function: with single quoted strings ***
137 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
140 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrripos_variation1.phpt2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum…
5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
12 echo "*** Testing strripos() function: with double quoted strings ***\n";
69 var_dump( strripos($haystack, $needle) );
70 var_dump( strripos($haystack, $needle, 1) );
71 var_dump( strripos($haystack, $needle, 20) );
72 var_dump( strripos($haystack, $needle, -1) );
78 *** Testing strripos() function: with double quoted strings ***
136 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
139 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dbug40754.phpt23 var_dump(strripos("abcde", "abc", $v));
59 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
/PHP-7.4/ext/mbstring/tests/
H A Dbug52931.phpt2 Bug #52931 (strripos not overloaded with function overloading enabled)
15 var_dump(strripos($string, '</body>'));
H A Dmb_get_info.phpt49 ["strripos"]=>
113 ["strripos"]=>
139 ["strripos"]=>
H A Dbug45923.phpt26 section('strripos' , "abc abc abc" , "abc");
192 ------- strripos -----------
206 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
216 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
/PHP-7.4/ext/standard/
H A Dphp_string.h47 PHP_FUNCTION(strripos);
H A Dbasic_functions.c2784 PHP_FE(strripos, arginfo_strripos)
H A Dstring.c2140 PHP_FUNCTION(strripos) argument

Completed in 36 milliseconds