Lines Matching refs:fnmatch
2 Test fnmatch() function: Error conditions
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 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) );
38 *** Testing error conditions for fnmatch() ***
39 Warning: fnmatch() expects parameter 1 to be a valid path, array given in %s on line %d
42 Warning: fnmatch() expects parameter 1 to be a valid path, resource given in %s on line %d
45 Warning: fnmatch() expects parameter 1 to be a valid path, object given in %s on line %d
48 Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d%d
51 Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d%d
54 Warning: fnmatch() expects at most 3 parameters, 4 given in %s on line %d%d