Home
last modified time | relevance | path

Searched refs:fnmatch (Results 1 – 12 of 12) sorted by relevance

/PHP-7.0/ext/standard/tests/file/
H A Dfnmatch_basic.phpt2 Test fnmatch() function: Basic functionality
5 if (!function_exists('fnmatch'))
18 var_dump( fnmatch("*.php", $file) );
19 var_dump( fnmatch("*.p*p", $file) );
20 var_dump( fnmatch("*.p*", $file) );
21 var_dump( fnmatch("*", $file) );
22 var_dump( fnmatch("**", $file) );
26 var_dump( fnmatch(100, 100) );
28 var_dump( fnmatch(TRUE, TRUE) );
29 var_dump( fnmatch(FALSE, FALSE) );
[all …]
H A Dfnmatch_error.phpt2 Test fnmatch() function: Error conditions
5 if (!function_exists('fnmatch'))
6 die("skip fnmatch() function is not available");
15 echo "*** Testing error conditions for fnmatch() ***";
18 var_dump( fnmatch(array(), array()) );
21 var_dump( fnmatch($file_handle, $file_handle) );
25 var_dump( fnmatch($std_obj, $std_obj) );
29 var_dump( fnmatch("match.txt") );
30 var_dump( fnmatch("") );
33 var_dump( fnmatch("match.txt", "match.txt", TRUE, 100) );
[all …]
H A Dfnmatch_variation.phpt2 Test fnmatch() function: Variations
5 if (!function_exists('fnmatch'))
6 die("skip fnmatch() function is not available");
10 /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )
11 Description: fnmatch() checks if the passed string would match
15 echo "*** Testing fnmatch() with file and various patterns ***\n";
69 var_dump( fnmatch($pattern_arr[$i], $file_name) );
74 echo "\n*** Testing fnmatch() with other types other than files ***";
81 var_dump( fnmatch($pattern[$i], $string[$j]) );
138 *** Testing fnmatch() with file and various patterns ***
[all …]
/PHP-7.0/ext/standard/tests/filters/
H A Dfilter_errors.inc4 if (!function_exists('fnmatch')) {
5 die('skip fnmatch() not available');
9 if (fnmatch($filter, $needle)) return;
/PHP-7.0/win32/
H A Dfnmatch.h52 PHPAPI int fnmatch(const char *pattern, const char *string, int flags);
H A Dfnmatch.c59 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() function
108 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch()
/PHP-7.0/ext/curl/
H A Dinterface.c1491 php_curl_fnmatch *t = ch->handlers->fnmatch; in curl_fnmatch()
1864 ch->handlers->fnmatch = NULL; in alloc_curl_handle()
2071 if (ch->handlers->fnmatch) { in PHP_FUNCTION()
2074 ZVAL_COPY(&dupch->handlers->fnmatch->func_name, &ch->handlers->fnmatch->func_name); in PHP_FUNCTION()
2076 dupch->handlers->fnmatch->method = ch->handlers->fnmatch->method; in PHP_FUNCTION()
2901 if (ch->handlers->fnmatch == NULL) { in _php_curl_setopt()
3395 if (ch->handlers->fnmatch) { in _php_curl_close_ex()
3397 efree(ch->handlers->fnmatch); in _php_curl_close_ex()
3476 if (ch->handlers->fnmatch) { in _php_curl_reset_handlers()
3478 efree(ch->handlers->fnmatch); in _php_curl_reset_handlers()
[all …]
H A Dphp_curl.h157 php_curl_fnmatch *fnmatch; member
/PHP-7.0/ext/standard/
H A Dfile.h69 PHP_FUNCTION(fnmatch);
H A Dfile.c2437 PHP_FUNCTION(fnmatch) in PHP_FUNCTION() argument
2456 RETURN_BOOL( ! fnmatch( pattern, filename, (int)flags )); in PHP_FUNCTION()
H A Dbasic_functions.c3160 PHP_FE(fnmatch, arginfo_fnmatch)
/PHP-7.0/win32/build/
H A Dconfig.w32154 ADD_SOURCES("win32", "inet.c fnmatch.c sockets.c");

Completed in 38 milliseconds