/PHP-7.4/ext/standard/tests/strings/ |
H A D | strrchr_basic.phpt | 2 Test strrchr() function : basic functionality 13 var_dump( strrchr('Hello, World', 'H') ); 14 var_dump( strrchr('Hello, World', 'Hello') ); 17 var_dump( strrchr("Hello, World", "h") ); 18 var_dump( strrchr("Hello, World", "hello") ); 21 var_dump( strrchr("Hello, World", "World") ); 25 var_dump( strrchr("Hello, World", ",") ); 26 var_dump( strrchr('Hello, World', ',') ); 31 var_dump( strrchr("Hello, World", "Hi") ); 34 var_dump( strrchr("Hello, World", "o") ); [all …]
|
H A D | strrchr.phpt | 2 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 D | strrchr_variation11.phpt | 2 Test strrchr() function : usage variations - unexpected inputs for haystack and needle 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function with unexpected inputs for haystack and needle */ 79 // loop through each element of the array and check the working of strrchr() 83 var_dump( strrchr($values[$index], $values[$index]) ); 92 *** Testing strrchr() function: with unexpected inputs for haystack and needle *** 131 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d 135 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d 139 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d 143 Warning: strrchr() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | strrchr_variation12.phpt | 2 Test strrchr() function : usage variations - binary safe 5 /* Prototype : string strrchr(string $haystack, string $needle); 12 echo "*** Test strrchr() function: binary safe ***\n"; 25 var_dump( strrchr($haystacks[$index], "\0") ); 27 var_dump( strrchr($haystacks[$index], NULL) ); 32 *** Test strrchr() function: binary safe *** 35 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 39 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 43 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 47 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d [all …]
|
H A D | strrchr_variation10.phpt | 2 Test strrchr() function : usage variations - unexpected inputs for needle 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function: with unexpected inputs for needle 14 echo "*** Testing strrchr() function with unexpected inputs for needle ***\n"; 124 var_dump( strrchr($haystacks[$index], $needles[$index]) ); 133 *** Testing strrchr() function with unexpected inputs for needle *** 172 Warning: strrchr(): needle is not a string or an integer in %s on line %d 176 Warning: strrchr(): needle is not a string or an integer in %s on line %d 180 Warning: strrchr(): needle is not a string or an integer in %s on line %d 184 Warning: strrchr(): needle is not a string or an integer in %s on line %d [all …]
|
H A D | strrchr_variation8.phpt | 2 Test strrchr() function : usage variations - empty heredoc string for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing empty heredoc string for haystack 14 echo "*** Testing strrchr() function: with heredoc strings ***\n"; 27 //loop through to test strrchr() with each needle 29 var_dump( strrchr($empty_str, $needle) ); 34 *** Testing strrchr() function: with heredoc strings *** 38 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 41 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
|
H A D | strrchr_variation7.phpt | 2 Test strrchr() function : usage variations - heredoc string containing blank line for 'haystack' 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"; 29 //loop through to test strrchr() with each needle 31 var_dump( strrchr($blank_line, $needle) ); 36 *** Testing strrchr() function: with heredoc strings ***
|
H A D | strrchr_variation3.phpt | 2 Test strrchr() function : usage variations - multi line heredoc string for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing multi-line heredoc string for haystack and 14 echo "*** Testing strrchr() function: with heredoc strings ***\n"; 28 //loop through to test strrchr() with each needle 30 var_dump( strrchr($multi_line_str, $needle) ); 36 *** Testing strrchr() function: with heredoc strings ***
|
H A D | strrchr_variation6.phpt | 2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing heredoc string containing quote chars for haystack 14 echo "*** Testing strrchr() function: with heredoc strings ***\n"; 29 //loop through to test strrchr() with each needle 31 var_dump( strrchr($quote_char_str, $needle) ); 36 *** Testing strrchr() function: with heredoc strings ***
|
H A D | strrchr_variation5.phpt | 2 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 D | strrchr_variation4.phpt | 2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing heredoc string containing special chars for haystack 14 echo "*** Testing strrchr() function: with heredoc strings ***\n"; 35 //loop through to test strrchr() with each needle 37 var_dump( strrchr($special_chars_str, $needle) ); 42 *** Testing strrchr() function: with heredoc strings ***
|
H A D | strrchr_variation2.phpt | 2 Test strrchr() function : usage variations - single quoted strings 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing various single quoted strings to 'haystack' & 'needle' */ 12 echo "*** Testing strrchr() function: with various single quoted strings ***"; 79 var_dump( strrchr($haystack, $needle[$index]) ); 85 *** Testing strrchr() function: with various single quoted strings *** 121 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 126 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 131 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 136 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d [all …]
|
H A D | strrchr_variation1.phpt | 2 Test strrchr() function : usage variations - double quoted strings 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */ 12 echo "*** Testing strrchr() function: with various double quoted strings ***"; 79 var_dump( strrchr($haystack, $needle[$index]) ); 85 *** Testing strrchr() function: with various double quoted strings *** 130 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 136 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 142 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d 148 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d [all …]
|
H A D | strings001.phpt | 2 Test whether strstr() and strrchr() are binary safe. 7 var_dump(strrchr($s," nic"));
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gd_xbm.c | 58 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm() 85 if (!(type = strrchr(iname, '_'))) { in gdImageCreateFromXbm() 186 if ((f = strrchr(name, '/')) != NULL) name = f+1; in gdImageXbmCtx() 187 if ((f = strrchr(name, '\\')) != NULL) name = f+1; in gdImageXbmCtx() 189 if ((f = strrchr(name, '.')) != NULL && !strcasecmp(f, ".XBM")) *f = '\0'; in gdImageXbmCtx()
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_alloc.c | 88 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_emalloc() 124 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pemalloc() 163 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_ecalloc() 200 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pecalloc() 240 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_erealloc() 278 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_perealloc() 317 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_efree() 348 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pefree() 381 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_malloc() 416 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_calloc() [all …]
|
/PHP-7.4/main/streams/ |
H A D | glob_wrapper.c | 106 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split() 110 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split() 230 if ((tmp = strrchr(pos, '/')) != NULL) { in php_glob_stream_opener() 234 if ((tmp = strrchr(pos, '\\')) != NULL) { in php_glob_stream_opener()
|
H A D | filter.c | 234 } else if ((period = strrchr(filtername, '.'))) { in php_stream_filter_create() 250 period = strrchr(wildname, '.'); in php_stream_filter_create()
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_get_info.phpt | 53 ["strrchr"]=> 117 ["strrchr"]=> 143 ["strrchr"]=>
|
/PHP-7.4/tests/strings/ |
H A D | 001.phpt | 39 echo "Testing strrchr: "; 41 $found1 = strrchr($test, "b"); 42 $found2 = strrchr($test, 102); 211 Testing strrchr: passed
|
/PHP-7.4/main/ |
H A D | fopen_wrappers.c | 189 path_file = strrchr(path_tmp, DEFAULT_SLASH); 191 path_file = strrchr(path_tmp, '/'); 194 path_file = strrchr(path_tmp, DEFAULT_SLASH);
|
H A D | php_ini.c | 527 separator_location = strrchr(binary_location, DEFAULT_SLASH); in php_init_config() 687 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { in php_init_config()
|
/PHP-7.4/ext/standard/ |
H A D | user_filters.c | 295 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create() 309 period = strrchr(wildcard, '.'); in user_filter_factory_create()
|
H A D | php_string.h | 48 PHP_FUNCTION(strrchr);
|
/PHP-7.4/ext/soap/ |
H A D | php_xml.c | 314 char *found = strrchr((char*)inval, ':'); in parse_namespace()
|