Lines Matching refs:dir
2 Test dir() function : usage variations - directories with restricted permissions
13 * remove the execute permission from the parent dir and test dir() on child dir
14 * 1) remove write & execute permission from the 1st parent and test dir()
15 * 2) remove execute permission from 2nd parent and test dir()
18 echo "*** Testing dir() : remove execute permission from the parent dir ***\n";
23 |-> child_dir ( child dir)
42 $d = dir($child_dir_path); // try to open, expected failure
45 // remove the execute permission from parent dir, allowing all permission for sub dir
46 chmod($sub_dir_path, 0777); // all permission to sub dir
49 $d = dir($child_dir_path); // try to open, expected failure
71 *** Testing dir() : remove execute permission from the parent dir ***
74 Warning: dir(%s/dir_variation7/sub_dir/child_dir): Failed to open directory: %s in %s on line %d
78 Warning: dir(%s/dir_variation7/sub_dir/child_dir): Failed to open directory: %s in %s on line %d