Lines Matching refs:fnmatch
2 Test fnmatch() function: Basic functionality
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 ***\n";
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) );
23 var_dump( fnmatch("*.phpt", $file) );
25 echo "*** Testing fnmatch() with other than file ***\n";
26 var_dump( fnmatch(100, 100) );
27 var_dump( fnmatch("string", "string") );
28 var_dump( fnmatch(TRUE, TRUE) );
29 var_dump( fnmatch(FALSE, FALSE) );
30 var_dump( fnmatch(NULL, NULL) );
35 *** Testing fnmatch() with file ***
42 *** Testing fnmatch() with other than file ***