Lines Matching refs:dir
2 Test dir() function : usage variations - directories with restricted permissions
13 * Prototype : object dir(string $directory[, resource $context])
15 * Source code: ext/standard/dir.c
19 * remove the execute permission from the parent dir and test dir() on child dir
20 * 1) remove write & execute permission from the 1st parent and test dir()
21 * 2) remove execute permission from 2nd parent and test dir()
24 echo "*** Testing dir() : remove execute permission from the parent dir ***\n";
29 |-> child_dir ( child dir)
48 $d = dir($child_dir_path); // try to open, expected failure
51 // remove the execute permisson from parent dir, allowing all permission for sub dir
52 chmod($sub_dir_path, 0777); // all permisson to sub dir
55 $d = dir($child_dir_path); // try to open, expected failure
77 *** Testing dir() : remove execute permission from the parent dir ***
80 Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d
84 Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d