Lines Matching refs:glob
2 Test glob() function: error conditions
5 /* Prototype: array glob ( string $pattern [, int $flags] );
17 echo "*** Testing glob() : error conditions ***\n";
19 echo "-- Testing glob() with unexpected no. of arguments --\n";
20 var_dump( glob() ); // args < expected
21 var_dump( glob(dirname(__FILE__)."/glob_error/wonder12345", GLOB_ERR, 3) ); // args > expected
23 echo "\n-- Testing glob() with invalid arguments --\n";
24 var_dump( glob(dirname(__FILE__)."/glob_error/wonder12345", '') );
25 var_dump( glob(dirname(__FILE__)."/glob_error/wonder12345", "string") );
37 *** Testing glob() : error conditions ***
38 -- Testing glob() with unexpected no. of arguments --
40 Warning: glob() expects at least 1 parameter, 0 given in %s on line %d
43 Warning: glob() expects at most 2 parameters, 3 given in %s on line %d
46 -- Testing glob() with invalid arguments --
48 Warning: glob() expects parameter 2 to be integer, string given in %s on line %d
51 Warning: glob() expects parameter 2 to be integer, string given in %s on line %d