Lines Matching refs:scandir
2 Test scandir() function : error conditions - Non-existent directory
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
17 * Pass a directory that does not exist to scandir() to test error messages
20 echo "*** Testing scandir() : error conditions ***\n";
24 echo "\n-- Pass scandir() an absolute path that does not exist --\n";
25 var_dump(scandir($directory));
27 echo "\n-- Pass scandir() a relative path that does not exist --\n";
28 var_dump(scandir('/idonotexist'));
32 *** Testing scandir() : error conditions ***
34 -- Pass scandir() an absolute path that does not exist --
36 Warning: scandir(%s/idonotexist): failed to open dir: %s in %s on line %d
38 Warning: scandir(): (errno %d): %s in %s on line %d
41 -- Pass scandir() a relative path that does not exist --
43 Warning: scandir(/idonotexist): failed to open dir: %s in %s on line %d
45 Warning: scandir(): (errno %d): %s in %s on line %d