Home
last modified time | relevance | path

Searched refs:strrpos (Results 1 – 25 of 30) sorted by relevance

12

/php-src/ext/standard/tests/strings/
H A Dstrrpos.phpt2 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 Dstrrpos_basic2.phpt12 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 Dstrrpos_basic1.phpt5 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 Dstrrpos_variation4.phpt2 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 Dstrrpos_offset.phpt2 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 Dstrrpos_variation3.phpt2 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 Dstrrpos_variation5.phpt2 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 Dstrrpos_variation7.phpt2 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) );
24 *** Testing strrpos() function: with heredoc strings ***
27 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrrpos_variation6.phpt2 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 Dstrrpos_negative_offset.phpt5 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 Dstrrpos_variation14.phpt2 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 Dstrrpos_variation12.phpt2 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 Dstrrpos_variation13.phpt2 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 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 '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 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 */
7 echo "*** Testing strrpos() function: with single quoted strings ***\n";
63 var_dump( strrpos($haystack, $needle[$index]) );
64 var_dump( strrpos($haystack, $needle[$index], $index) );
70 *** Testing strrpos() function: with single quoted strings ***
H A Dstrripos_variation6.phpt2 Test strrpos() function : usage variations - negative offset with empty needle
H A Dbug40754.phpt56 strrpos("abcde", "abc", $v);
90 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/php-src/ext/mbstring/tests/
H A Dbug43841.phpt31 echo "strrpos:\n";
33 var_dump(strrpos('This is na English ta', 'a', $i));
46 strrpos:
47 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 strrpos:
56 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
64 strrpos:
73 strrpos:
H A Dbug45923.phpt27 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-src/ext/standard/tests/file/windows_acls/
H A Dbug44859.phpt10 $uniqueBasePath = substr(__FILE__, 0, strrpos(__FILE__, '.'));
H A Dbug44859_2.phpt10 $uniqueBasePath = substr(__FILE__, 0, strrpos(__FILE__, '.'));
H A Dbug44859_4.phpt12 $uniqueBaseName = basename(substr(__FILE__, 0, strrpos(__FILE__, '.')));
/php-src/ext/pdo_dblib/tests/
H A Dconfig.inc13 return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
/php-src/sapi/cli/tests/
H A Dphp_cli_server.inc115 $port = (int) substr($bound, strrpos($bound, ':') + 1);
/php-src/ext/ftp/tests/
H A Dserver.inc14 $port = (int) substr($socket_name, strrpos($socket_name, ':') + 1);
420 $pasv_port = (int) substr($soc_name, strrpos($soc_name, ':') + 1);

Completed in 26 milliseconds

12