--TEST-- Test dir() function : usage variations - different directory permissions --SKIPIF-- --FILE-- read()); // close directory $d->close(); } echo "Done"; ?> --CLEAN-- --EXPECTF-- *** Testing dir() : different directory permissions *** -- Iteration 1 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 2 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 3 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 4 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 5 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 6 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 7 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 8 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 9 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" -- Iteration 10 -- bool(true) object(Directory)#%d (2) { ["path"]=> string(%d) "%s/dir_variation3" ["handle"]=> resource(%d) of type (stream) } -- reading contents -- string(%d) "%s" Done