Lines Matching refs:scandir
2 Test scandir() function : error conditions - Non-existent directory
12 * Pass a directory that does not exist to scandir() to test error messages
15 echo "*** Testing scandir() : error conditions ***\n";
19 echo "\n-- Pass scandir() an absolute path that does not exist --\n";
20 var_dump(scandir($directory));
22 echo "\n-- Pass scandir() a relative path that does not exist --\n";
23 var_dump(scandir('/idonotexist'));
26 *** Testing scandir() : error conditions ***
28 -- Pass scandir() an absolute path that does not exist --
30 Warning: scandir(%s/idonotexist): Failed to open directory: %s in %s on line %d
32 Warning: scandir(): (errno %d): %s in %s on line %d
35 -- Pass scandir() a relative path that does not exist --
37 Warning: scandir(/idonotexist): Failed to open directory: %s in %s on line %d
39 Warning: scandir(): (errno %d): %s in %s on line %d