Home
last modified time | relevance | path

Searched refs:strrchr (Results 1 – 25 of 55) sorted by relevance

123

/PHP-8.0/ext/standard/tests/strings/
H A Dstrrchr_basic.phpt2 Test strrchr() function : basic functionality
8 var_dump( strrchr('Hello, World', 'H') );
9 var_dump( strrchr('Hello, World', 'Hello') );
12 var_dump( strrchr("Hello, World", "h") );
13 var_dump( strrchr("Hello, World", "hello") );
16 var_dump( strrchr("Hello, World", "World") );
20 var_dump( strrchr("Hello, World", ",") );
21 var_dump( strrchr('Hello, World', ',') );
26 var_dump( strrchr("Hello, World", "Hi") );
29 var_dump( strrchr("Hello, World", "o") );
[all …]
H A Dstrrchr.phpt2 strrchr() tests
6 var_dump(strrchr("", ""));
7 var_dump(strrchr("abc", ""));
8 var_dump(strrchr("", "abc"));
9 var_dump(strrchr("abc", "abc"));
10 var_dump(strrchr("test ".chr(0)." test", " "));
11 var_dump(strrchr("test".chr(0)."string", "t"));
H A Dstrrchr_variation8.phpt2 Test strrchr() function : usage variations - empty heredoc string for 'haystack'
5 /* Test strrchr() function by passing empty heredoc string for haystack
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
22 //loop through to test strrchr() with each needle
24 var_dump( strrchr($empty_str, $needle) );
29 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation7.phpt2 Test strrchr() function : usage variations - heredoc string containing blank line for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
24 //loop through to test strrchr() with each needle
26 var_dump( strrchr($blank_line, $needle) );
31 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation12.phpt2 Test strrchr() function : usage variations - binary safe
5 /* Test strrchr() function: with binary values & null terminated strings passed to 'str1' & 'str2' …
7 echo "*** Test strrchr() function: binary safe ***\n";
20 var_dump( strrchr($haystacks[$index], "\0") );
22 var_dump( strrchr($haystacks[$index], NULL) );
27 *** Test strrchr() function: binary safe ***
H A Dstrrchr_variation3.phpt2 Test strrchr() function : usage variations - multi line heredoc string for 'haystack'
5 /* Test strrchr() function by passing multi-line heredoc string for haystack and
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
23 //loop through to test strrchr() with each needle
25 var_dump( strrchr($multi_line_str, $needle) );
31 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation11.phpt2 Test strrchr() function : usage variations - unexpected inputs for haystack and needle
5 /* Test strrchr() function with unexpected inputs for haystack and needle */
74 // loop through each element of the array and check the working of strrchr()
79 var_dump( strrchr($values[$index], $values[$index]) );
91 *** Testing strrchr() function: with unexpected inputs for haystack and needle ***
111 strrchr(): Argument #1 ($haystack) must be of type string, array given
113 strrchr(): Argument #1 ($haystack) must be of type string, array given
115 strrchr(): Argument #1 ($haystack) must be of type string, array given
117 strrchr(): Argument #1 ($haystack) must be of type string, array given
119 strrchr(): Argument #1 ($haystack) must be of type string, array given
[all …]
H A Dstrrchr_variation6.phpt2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing quote chars for haystack
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
24 //loop through to test strrchr() with each needle
26 var_dump( strrchr($quote_char_str, $needle) );
31 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation5.phpt2 Test strrchr() function : usage variations - heredoc string containing escape sequences for 'haysta…
5 /* Prototype : string strrchr(string $haystack, string $needle);
10 /* Test strrchr() function by passing heredoc string containing
14 echo "*** Testing strrchr() function: with heredoc strings ***\n";
28 //loop through to test strrchr() with each needle
30 var_dump( strrchr($escape_char_str, $needle) );
36 *** Testing strrchr() function: with heredoc strings ***
H A Dstrrchr_variation10.phpt2 Test strrchr() function : usage variations - unexpected inputs for needle
5 /* Test strrchr() function: with unexpected inputs for needle
9 echo "*** Testing strrchr() function with unexpected inputs for needle ***\n";
120 var_dump( strrchr($haystacks[$index], $needles[$index]) );
132 *** Testing strrchr() function with unexpected inputs for needle ***
152 strrchr(): Argument #2 ($needle) must be of type string, array given
154 strrchr(): Argument #2 ($needle) must be of type string, array given
156 strrchr(): Argument #2 ($needle) must be of type string, array given
158 strrchr(): Argument #2 ($needle) must be of type string, array given
160 strrchr(): Argument #2 ($needle) must be of type string, array given
[all …]
H A Dstrrchr_variation4.phpt2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing special chars for haystack
9 echo "*** Testing strrchr() function: with heredoc strings ***\n";
30 //loop through to test strrchr() with each needle
32 var_dump( strrchr($special_chars_str, $needle) );
37 *** Testing strrchr() function: with heredoc strings ***
H A Dstrings001.phpt2 Test whether strstr() and strrchr() are binary safe.
7 var_dump(strrchr($s," nic"));
H A Dstrrchr_variation2.phpt2 Test strrchr() function : usage variations - single quoted strings
5 /* Test strrchr() function by passing various single quoted strings to 'haystack' & 'needle' */
7 echo "*** Testing strrchr() function: with various single quoted strings ***";
74 var_dump( strrchr($haystack, $needle[$index]) );
80 *** Testing strrchr() function: with various single quoted strings ***
H A Dstrrchr_variation1.phpt2 Test strrchr() function : usage variations - double quoted strings
6 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */
8 echo "*** Testing strrchr() function: with various double quoted strings ***";
75 var_dump( strrchr($haystack, $needle[$index]) );
81 *** Testing strrchr() function: with various double quoted strings ***
/PHP-8.0/ext/gd/libgd/
H A Dgd_xbm.c56 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm()
83 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm()
184 if ((f = strrchr(name, '/')) != NULL) name = f+1; in gdImageXbmCtx()
185 if ((f = strrchr(name, '\\')) != NULL) name = f+1; in gdImageXbmCtx()
187 if ((f = strrchr(name, '.')) != NULL && !strcasecmp(f, ".XBM")) *f = '\0'; in gdImageXbmCtx()
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_alloc.c86 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_emalloc()
122 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pemalloc()
161 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_ecalloc()
198 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pecalloc()
238 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_erealloc()
276 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_perealloc()
315 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_efree()
346 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pefree()
379 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_malloc()
414 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_calloc()
[all …]
/PHP-8.0/main/streams/
H A Dglob_wrapper.c104 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split()
108 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split()
228 if ((tmp = strrchr(pos, '/')) != NULL) { in php_glob_stream_opener()
232 if ((tmp = strrchr(pos, '\\')) != NULL) { in php_glob_stream_opener()
H A Dfilter.c232 } else if ((period = strrchr(filtername, '.'))) { in php_stream_filter_create()
248 period = strrchr(wildname, '.'); in php_stream_filter_create()
/PHP-8.0/tests/strings/
H A D001.phpt37 echo "Testing strrchr: ";
39 $found1 = strrchr($test, "b");
40 $found2 = strrchr($test, chr(102));
209 Testing strrchr: passed
/PHP-8.0/main/
H A Dfopen_wrappers.c180 path_file = strrchr(path_tmp, DEFAULT_SLASH);
182 path_file = strrchr(path_tmp, '/');
185 path_file = strrchr(path_tmp, DEFAULT_SLASH);
H A Dphp_ini.c511 separator_location = strrchr(binary_location, DEFAULT_SLASH); in php_init_config()
671 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { in php_init_config()
/PHP-8.0/ext/standard/
H A Duser_filters.c292 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create()
306 period = strrchr(wildcard, '.'); in user_filter_factory_create()
/PHP-8.0/ext/soap/
H A Dphp_xml.c314 char *found = strrchr((char*)inval, ':'); in parse_namespace()
/PHP-8.0/sapi/litespeed/
H A Dlscriu.c421 pchLastSlash = strrchr(criu_native_dump.m_chSocketDir,'/'); in LSCRIU_Native_Dump()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_main.c815 prog = strrchr(argv0, '/'); in php_cgi_usage()
1106 while ((ptr = strrchr(pt, '/')) || (ptr = strrchr(pt, '\\'))) { in init_request_info()

Completed in 62 milliseconds

123