Lines Matching refs:dir
2 Test dir() function : usage variations - directories with restricted permissions
21 * Prototype : object dir(string $directory[, resource $context])
23 * Source code: ext/standard/dir.c
27 * remove the execute permission from the parent dir and test dir() on child dir
28 * 1) remove write & execute permission from the 1st parent and test dir()
29 * 2) remove execute permission from 2nd parent and test dir()
32 echo "*** Testing dir() : remove execute permission from the parent dir ***\n";
37 |-> child_dir ( child dir)
56 $d = dir($child_dir_path); // try to open, expected failure
59 // remove the execute permisson from parent dir, allowing all permission for sub dir
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
63 $d = dir($child_dir_path); // try to open, expected failure
85 *** Testing dir() : remove execute permission from the parent dir ***
88 Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d
92 Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d