/PHP-7.0/ext/standard/tests/strings/ |
H A D | strripos.phpt | 2 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 D | strripos_basic2.phpt | 16 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 D | strripos_offset.phpt | 2 strripos() offset integer overflow 8 var_dump(strripos("t", "t", PHP_INT_MAX+1)); 9 var_dump(strripos("tttt", "tt", PHP_INT_MAX+1)); 10 var_dump(strripos(100, 101, PHP_INT_MAX+1)); 11 var_dump(strripos(1024, 1024, PHP_INT_MAX+1)); 12 var_dump(strripos(array(), array(), PHP_INT_MAX+1)); 13 var_dump(strripos(1024, 1024, -PHP_INT_MAX)); 14 var_dump(strripos(1024, "te", -PHP_INT_MAX)); 15 var_dump(strripos(1024, 1024, -PHP_INT_MAX-1)); 16 var_dump(strripos(1024, "te", -PHP_INT_MAX-1)); [all …]
|
H A D | strripos_basic1.phpt | 16 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 D | strripos_variation3.phpt | 23 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 D | strripos_variation4.phpt | 5 /* 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 D | strripos_error.phpt | 2 Test strripos() function : error conditions 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 10 echo "*** Testing strripos() function: error conditions ***"; 12 var_dump( strripos() ); 15 var_dump( strripos("String") ); 18 var_dump( strripos("string", "String", 1, 'extra_arg') ); 22 *** Testing strripos() function: error conditions *** 24 Warning: strripos() expects at least 2 parameters, 0 given in %s on line %d 28 Warning: strripos() expects at least 2 parameters, 1 given in %s on line %d 32 Warning: strripos() expects at most 3 parameters, 4 given in %s on line %d
|
H A D | strripos_variation5.phpt | 2 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 D | strrpos_negative_offset.phpt | 13 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 D | strripos_variation1.phpt | 2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum… 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 10 /* Test strripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */ 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 ***
|
H A D | strripos_variation2.phpt | 2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum… 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 10 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */ 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 ***
|
H A D | bug40754.phpt | 23 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.0/ext/mbstring/tests/ |
H A D | bug52931.phpt | 2 Bug #52931 (strripos not overloaded with function overloading enabled) 16 var_dump(strripos($string, '</body>'));
|
H A D | bug45923.phpt | 69 var_dump(strripos("abc abc abc", "abc", 0)); 70 var_dump(strripos("abc abc abc", "abc", 3)); 71 var_dump(strripos("abc abc abc", "abc", 6)); 72 var_dump(strripos("abc abc abc", "abc", 9)); 73 var_dump(strripos("abc abc abc", "abc", 11)); 74 var_dump(strripos("abc abc abc", "abc", 12)); 75 var_dump(strripos("abc abc abc", "abc", -1)); 76 var_dump(strripos("abc abc abc", "abc", -3)); 77 var_dump(strripos("abc abc abc", "abc", -6)); 187 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_get_info.phpt | 48 ["strripos"]=> 112 ["strripos"]=> 138 ["strripos"]=>
|
/PHP-7.0/ext/standard/ |
H A D | php_string.h | 51 PHP_FUNCTION(strripos);
|
H A D | string.c | 2084 PHP_FUNCTION(strripos) argument
|
H A D | basic_functions.c | 2737 PHP_FE(strripos, arginfo_strripos)
|