/PHP-8.0/ext/standard/tests/strings/ |
H A D | strrpos.phpt | 2 strrpos() function 5 var_dump(strrpos("test test string", "test")); 9 var_dump(strrpos("test string", "g")); 10 var_dump(strrpos("te".chr(0)."st", chr(0))); 11 var_dump(strrpos("tEst", "test")); 12 var_dump(strrpos("teSt", "test")); 13 var_dump(strrpos("foo", "f", 1)); 14 var_dump(strrpos("", "")); 15 var_dump(strrpos("a", "")); 16 var_dump(strrpos("", "a")); [all …]
|
H A D | strrpos_basic2.phpt | 12 var_dump( strrpos("Hello, World", "Hello", 0) ); 13 var_dump( strrpos("Hello, World", 'Hello', 1) ); 14 var_dump( strrpos('Hello, World', 'World', 1) ); 15 var_dump( strrpos('Hello, World', "World", 5) ); 19 var_dump( strrpos($heredoc_str, 'Hello', 0) ); 20 var_dump( strrpos($heredoc_str, 'Hello', 1) ); 21 var_dump( strrpos($heredoc_str, $heredoc_str, 0) ); 22 var_dump( strrpos($heredoc_str, $heredoc_str, 1) ); 25 var_dump( strrpos("Hello, World", "o", 3) ); 26 var_dump( strrpos("Hello, World", "o", 6) ); [all …]
|
H A D | strrpos_basic1.phpt | 5 echo "*** Testing strrpos() function: basic functionality ***\n"; 12 var_dump( strrpos("Hello, World", "Hello") ); 13 var_dump( strrpos('Hello, World', "hello") ); 14 var_dump( strrpos("Hello, World", 'World') ); 15 var_dump( strrpos('Hello, World', 'WORLD') ); 18 var_dump( strrpos("Hello, World", "o") ); 19 var_dump( strrpos("Hello, World", ",") ); 22 var_dump( strrpos($heredoc_str, "Hello, World") ); 23 var_dump( strrpos($heredoc_str, 'Hello') ); 24 var_dump( strrpos($heredoc_str, $heredoc_str) ); [all …]
|
H A D | strrpos_offset.phpt | 2 strrpos() offset integer overflow 7 var_dump(strrpos("t", "t", PHP_INT_MAX+1)); 13 strrpos(1024, 1024, -PHP_INT_MAX); 19 strrpos(1024, "te", -PHP_INT_MAX); 25 strrpos(1024, 1024, -PHP_INT_MAX-1); 31 strrpos(1024, "te", -PHP_INT_MAX-1); 39 strrpos(): Argument #3 ($offset) must be of type int, float given 40 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 41 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 42 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) [all …]
|
H A D | strrpos_variation4.phpt | 2 Test strrpos() function : usage variations - heredoc string containing special chars for 'haystack'… 5 /* Test strrpos() function by passing heredoc string containing special chars for haystack 9 echo "*** Testing strrpos() function: with heredoc strings ***\n"; 16 var_dump( strrpos($special_chars_str, "Ex'ple", 0) ); 17 var_dump( strrpos($special_chars_str, "!@@!", 23) ); 18 var_dump( strrpos($special_chars_str, '_') ); 19 var_dump( strrpos($special_chars_str, '("_")') ); 20 var_dump( strrpos($special_chars_str, "$*") ); 21 var_dump( strrpos($special_chars_str, "$*", 10) ); 22 var_dump( strrpos($special_chars_str, "(special)") ); [all …]
|
H A D | strrpos_variation7.phpt | 2 Test strrpos() function : usage variations - empty heredoc string for 'haystack' argument 5 /* Test strrpos() function by passing empty heredoc string for haystack 9 echo "*** Testing strrpos() function: with heredoc strings ***\n"; 13 var_dump( strrpos($empty_string, "") ); 15 strrpos($empty_string, "", 1); 19 var_dump( strrpos($empty_string, FALSE) ); 20 var_dump( strrpos($empty_string, NULL) ); 25 *** Testing strrpos() function: with heredoc strings *** 28 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
H A D | strrpos_variation11.phpt | 5 /* Test strrpos() function with unexpected inputs for 'haystack' and 'needle' arguments */ 74 // loop through each element of the array and check the working of strrpos() 80 var_dump( strrpos($values[$index], $values[$index]) ); 86 var_dump( strrpos($values[$index], $values[$index], 1) ); 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 [all …]
|
H A D | strrpos_variation3.phpt | 2 Test strrpos() function : usage variations - multi line heredoc string for 'haystack' argument 5 /* Test strrpos() function by passing multi-line heredoc string for haystack and 9 echo "*** Testing strrpos() function: with heredoc strings ***\n"; 16 var_dump( strrpos($multi_line_str, "ing", 0) ); 17 var_dump( strrpos($multi_line_str, "ing", 15) ); 18 var_dump( strrpos($multi_line_str, "ing", 22) ); 19 var_dump( strrpos($multi_line_str, "") ); 20 var_dump( strrpos($multi_line_str, " ") ); 25 *** Testing strrpos() function: with heredoc strings ***
|
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 9 echo "*** Testing strrpos() function: with heredoc strings ***\n"; 15 var_dump( strrpos($control_char_str, "\n") ); 16 var_dump( strrpos($control_char_str, "\t") ); 17 var_dump( strrpos($control_char_str, "\n", 12) ); 18 var_dump( strrpos($control_char_str, "\t", 15) ); 23 *** Testing strrpos() function: with heredoc strings ***
|
H A D | strrpos_variation6.phpt | 2 Test strrpos() function : usage variations - heredoc string containing quotes for 'haystack' argume… 5 /* Test strrpos() function by passing heredoc string containing quotes for haystack 9 echo "*** Testing strrpos() function: with heredoc strings ***\n"; 17 var_dump( strrpos($quote_char_str, "line") ); 18 var_dump( strrpos($quote_char_str, 'things') ); 19 var_dump( strrpos($quote_char_str, 'things', 0) ); 20 var_dump( strrpos($quote_char_str, "things", 20) ); 24 *** Testing strrpos() function: with heredoc strings ***
|
H A D | strrpos_negative_offset.phpt | 5 var_dump(strrpos("haysthack", 'ha', -9)); 6 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)
|
H A D | strrpos_variation14.phpt | 2 Test strrpos() function : usage variations - negative offset with empty needle 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 D | strrpos_variation12.phpt | 2 Test strrpos() function : usage variations - checking binary safe with 'haystack' argument 5 /* Test strrpos() function with null terminated strings for 'haystack' argument 9 echo "*** Test strrpos() function: binary safe ***\n"; 21 var_dump( strrpos($haystacks[$index], "\0") ); 22 var_dump( strrpos($haystacks[$index], "\0", $index) ); 27 *** Test strrpos() function: binary safe ***
|
H A D | strrpos_variation13.phpt | 2 Test strrpos() function : usage variations - checking bianry safe with 'needle' argument 5 /* Test strrpos() function with null terminated strings for 'needle' argument 9 echo "*** Test strrpos() function: binary safe ***\n"; 23 var_dump( strrpos($haystack, $needles[$index]) ); 24 var_dump( strrpos($haystack, $needles[$index], $index) ); 29 *** Test strrpos() function: binary safe ***
|
H A D | strrpos_variation10.phpt | 2 Test strrpos() function : usage variations - unexpected inputs for 'needle' argument 5 /* Test strrpos() function with unexpected inputs for 'needle' and 9 echo "*** Testing strrpos() function with unexpected values for needle ***\n"; 82 var_dump( strrpos($haystack, $needles[$index]) ); 94 *** Testing strrpos() function with unexpected values for needle *** 114 strrpos(): Argument #2 ($needle) must be of type string, array given 116 strrpos(): Argument #2 ($needle) must be of type string, array given 118 strrpos(): Argument #2 ($needle) must be of type string, array given 120 strrpos(): Argument #2 ($needle) must be of type string, array given 122 strrpos(): Argument #2 ($needle) must be of type string, array given [all …]
|
H A D | strrpos_variation8.phpt | 2 Test strrpos() function : usage variations - repetitive chars for 'haystack' argument 5 /* Test strrpos() function with strings containing multiple occurrences of 'needle' in the 'haystac… 9 echo "*** Testing strrpos() function: strings repetitive chars ***\n"; 17 var_dump( strrpos($haystack, $needle, $offset) ); 23 *** Testing strrpos() function: strings repetitive chars ***
|
H A D | strrpos_variation1.phpt | 2 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 */ 7 echo "*** Testing strrpos() function: with double quoted strings ***\n"; 64 var_dump( strrpos($haystack, $needle[$index]) ); 65 var_dump( strrpos($haystack, $needle[$index], $index) ); 71 *** Testing strrpos() function: with double quoted strings ***
|
H A D | strrpos_variation2.phpt | 2 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 */ 7 echo "*** Testing strrpos() function: with single quoted strings ***\n"; 65 var_dump( strrpos($haystack, $needle[$index]) ); 66 var_dump( strrpos($haystack, $needle[$index], $index) ); 72 *** Testing strrpos() function: with single quoted strings ***
|
H A D | strripos_variation6.phpt | 2 Test strrpos() function : usage variations - negative offset with empty needle
|
H A D | bug40754.phpt | 56 strrpos("abcde", "abc", $v); 90 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | bug43841.phpt | 34 echo "strrpos:\n"; 36 var_dump(strrpos('This is na English ta', 'a', $i)); 49 strrpos: 50 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 58 strrpos: 59 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 67 strrpos: 76 strrpos:
|
H A D | bug45923.phpt | 27 section('strrpos' , "abc abc abc" , "abc"); 126 ------- strrpos ----------- 139 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 147 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
|
/PHP-8.0/ext/pdo_dblib/tests/ |
H A D | config.inc | 13 return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
|
/PHP-8.0/ext/standard/tests/file/windows_acls/ |
H A D | bug44859.phpt | 10 $uniqueBasePath = substr(__FILE__, 0, strrpos(__FILE__, '.'));
|
H A D | bug44859_2.phpt | 10 $uniqueBasePath = substr(__FILE__, 0, strrpos(__FILE__, '.'));
|