--EXPECTF--
*** Testing chdir() : basic functionality ***
--- Testing chdir() with absolute path: --
-bool(true)
-string(%d) "%slevel_one"
-
--- Testing chdir() with relative paths: --
-bool(true)
-string(%d) "%slevel_one%elevel_two"
-===DONE===
---UEXPECTF--
-*** Testing chdir() : basic functionality ***
-
-- Testing chdir() with absolute path: --
bool(true)
unicode(%d) "%slevel_one"
Warning: chdir() expects exactly 1 parameter, 2 given in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing chdir() : error conditions ***
-
--- Testing chdir() function with Zero arguments --
-
-Warning: chdir() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing chdir() function with more than expected no. of arguments --
-
-Warning: chdir() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
Warning: chdir(): %s (errno %d) in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing chdir() : error conditions ***
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-===DONE===
Warning: chdir(): %s (errno %d) in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing chdir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 6 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 7 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 8 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 9 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 10 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 11 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 12 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 13 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 14 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 15 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 16 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 17 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 18 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 19 --
-bool(true)
-
--- Iteration 20 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 21 --
-bool(true)
-
--- Iteration 22 --
-bool(true)
-
--- Iteration 23 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 24 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-
--- Iteration 25 --
-
-Warning: chdir(): %s (errno %d) in %s on line %d
-bool(false)
-===DONE===
--EXPECTF--
*** Testing chdir() : usage variations ***
--- $directory = './level_one': --
-bool(true)
-bool(true)
-string(%d) "%slevel_one"
-
--- $directory = 'level_one/level_two': --
-bool(true)
-bool(true)
-string(%d) "%slevel_one%elevel_two"
-
--- $directory = '..': --
-bool(true)
-string(%d) "%slevel_one"
-
--- $directory = 'level_two', '.': --
-bool(true)
-bool(true)
-string(%d) "%slevel_one%elevel_two"
-
--- $directory = '../': --
-bool(true)
-string(%d) "%slevel_one"
-
--- $directory = './': --
-bool(true)
-bool(true)
-string(%d) "%slevel_one%elevel_two"
-
--- $directory = '../../'level_one': --
-bool(true)
-bool(true)
-string(%d) "%slevel_one"
-===DONE===
---UEXPECTF--
-*** Testing chdir() : usage variations ***
-
-- $directory = './level_one': --
bool(true)
bool(true)
-- Check Directory Handle: --
resource(%d) of type (Unknown)
===DONE===
---UEXPECTF--
-*** Testing closedir() : basic functionality ***
-
--- Call closedir() with no arguments: --
-NULL
--- Check Directory Handle: --
-resource(%d) of type (Unknown)
-
--- Call closedir() with $dir_handle argument supplied: --
-NULL
--- Check Directory Handle: --
-resource(%d) of type (Unknown)
-===DONE===
Warning: Wrong parameter count for closedir() in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing closedir() : error conditions ***
-
--- Testing closedir() function with more than expected no. of arguments --
-
-Warning: Wrong parameter count for closedir() in %s on line %d
-NULL
-===DONE===
Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing closedir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 6 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 7 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 8 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 9 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 10 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 11 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 12 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 13 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 14 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 15 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 16 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 17 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 18 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 19 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 20 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 21 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 22 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 23 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 24 --
-
-Warning: closedir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-===DONE===
bool(false)
Directory Handle: resource(%d) of type (Unknown)
===DONE===
---UEXPECTF--
-*** Testing closedir() : usage variations ***
-
--- Close directory handle first time: --
-NULL
-Directory Handle: resource(%d) of type (Unknown)
-
--- Close directory handle second time: --
-
-Warning: closedir(): %d is not a valid Directory resource in %s on line %d
-bool(false)
-Directory Handle: resource(%d) of type (Unknown)
-===DONE===
-- Check file pointer: --
resource(%d) of type (stream)
===DONE===
---UEXPECTF--
-*** Testing closedir() : usage variations ***
-
--- Open a file using fopen() --
-resource(%d) of type (stream)
-
--- Try to close the file pointer using closedir() --
-
-Warning: closedir(): %d is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Check file pointer: --
-resource(%d) of type (stream)
-===DONE===
--EXPECTF--
*** Testing dir() : basic functionality ***
Get Directory instance:
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_basic"
- ["handle"]=>
- resource(%d) of type (stream)
-}
-
-Read and rewind:
-string(%d) "%s"
-string(%d) "%s"
-NULL
-
-Test using handle directly:
-string(%d) "%s"
-string(%d) "%s"
-
-Close directory:
-NULL
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_basic"
- ["handle"]=>
- resource(%d) of type (Unknown)
-}
-
-Test read after closing the dir:
-Warning: Directory::read(): %d is not a valid Directory resource in %s on line %d
-bool(false)
-Done
---UEXPECTF--
-*** Testing dir() : basic functionality ***
-Get Directory instance:
object(Directory)#%d (2) {
[u"path"]=>
unicode(%d) "%s/dir_basic"
Warning: dir() expects at most 2 parameters, 3 given in %s on line %d
NULL
Done
---UEXPECTF--
-*** Testing dir() : error conditions ***
-
--- Testing dir() function with zero arguments --
-Warning: dir() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing dir() function with one more than expected number of arguments --
-Warning: dir() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-Done
Warning: dir(ClassAObject): failed to open dir: %s in %s on line %d
bool(false)
Done
---UEXPECTF--
-*** Testing dir() : unexpected values for $directory argument ***
-
--- Iteration 1 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: dir(Array): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: dir(Array): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: dir(Array): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: dir(Array): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: dir(Array): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 6 --
-bool(false)
-
--- Iteration 7 --
-bool(false)
-
--- Iteration 8 --
-
-Warning: dir(1): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 9 --
-bool(false)
-
--- Iteration 10 --
-
-Warning: dir(1): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 11 --
-bool(false)
-
--- Iteration 12 --
-bool(false)
-
--- Iteration 13 --
-bool(false)
-
--- Iteration 14 --
-bool(false)
-
--- Iteration 15 --
-bool(false)
-
--- Iteration 16 --
-
-Warning: dir(Resource id #%d): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 17 --
-
-Warning: dir(Resource id #%d): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 18 --
-
-Warning: dir(ClassAObject): failed to open dir: %s in %s on line %d
-bool(false)
-Done
Warning: dir() expects parameter 2 to be resource, boolean given in %s on line %d
NULL
--- Iteration 21 --
-Warning: dir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 22 --
-Warning: dir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 23 --
-Warning: dir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 24 --
-Warning: dir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 25 --
-Warning: dir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 26 --
-Warning: dir() expects parameter 2 to be resource, object given in %s on line %d
-NULL
-
--- Iteration 27 --
-Warning: dir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 28 --
-Warning: dir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-Done
---UEXPECTF--
-*** Testing dir() : unexpected values for $context argument ***
-
--- Iteration 1 --
-Warning: dir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 2 --
-Warning: dir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 3 --
-Warning: dir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 4 --
-Warning: dir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 5 --
-Warning: dir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 6 --
-Warning: dir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 7 --
-Warning: dir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 8 --
-Warning: dir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 9 --
-Warning: dir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 10 --
-Warning: dir() expects parameter 2 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 11 --
-Warning: dir() expects parameter 2 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 12 --
-Warning: dir() expects parameter 2 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 13 --
-Warning: dir() expects parameter 2 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 14 --
-Warning: dir() expects parameter 2 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 15 --
-Warning: dir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 16 --
-Warning: dir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 17 --
-Warning: dir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 18 --
-Warning: dir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 19 --
-Warning: dir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 20 --
-Warning: dir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
-- Iteration 21 --
Warning: dir() expects parameter 2 to be resource, Unicode string given in %s on line %d
NULL
*** 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
---UEXPECTF--
-*** Testing dir() : different directory permissions ***
--- Iteration 1 --
-bool(true)
object(Directory)#%d (2) {
[u"path"]=>
unicode(%d) "%s/dir_variation3"
?>
--EXPECTF--
*** Testing dir() : operate on previously opened directory ***
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_variation4"
- ["handle"]=>
- resource(%d) of type (stream)
-}
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_variation4"
- ["handle"]=>
- resource(%d) of type (stream)
-}
--- reading directory contents with previous handle --
-string(%d) "%s"
--- reading directory contents with current handle --
-string(%d) "%s"
-Done
---UEXPECTF--
-*** Testing dir() : operate on previously opened directory ***
object(Directory)#%d (2) {
[u"path"]=>
unicode(%d) "%s/dir_variation4"
Warning: dir(%s): failed to open dir: %s in %s on line %d
bool(false)
Done
---UEXPECTF--
-*** Testing dir() : open a file instead of a directory ***
-
-Warning: dir(%s): failed to open dir: %s in %s on line %d
-bool(false)
-Done
Warning: dir(%s): failed to open dir: %s in %s on line %d
bool(false)
Done
---UEXPECTF--
-*** Testing dir() : open a non-existent directory ***
--- opening previously removed directory --
-
-Warning: dir(%s): failed to open dir: %s in %s on line %d
-bool(false)
--- opening non-existent directory --
-
-Warning: dir(%s): failed to open dir: %s in %s on line %d
-bool(false)
-Done
Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d
bool(false)
Done
---UEXPECTF--
-*** Testing dir() : remove execute permission from the parent dir ***
--- After restricting 1st level parent directory --
-
-Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d
-bool(false)
--- After restricting parent directory --
-
-Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d
-bool(false)
-Done
Warning: dir(%s/dir_variation81/sub?dir1): failed to open dir: %s in %s on line %d
bool(false)
Done
---UEXPECTF--
-*** Testing dir() : checking with wildcard characters ***
--- wildcard = '*' --
-
-Warning: dir(%s/dir_var*): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: dir(%s/*): failed to open dir: %s in %s on line %d
-bool(false)
--- wildcard = '?' --
-
-Warning: dir(%s/dir_variation81/sub_dir?): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: dir(%s/dir_variation81/sub?dir1): failed to open dir: %s in %s on line %d
-bool(false)
-Done
--EXPECTF--
*** Testing dir() : checking with valid and invalid paths ***
--- With valid paths --
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_variation91/sub_dir11/sub_dir111/.."
- ["handle"]=>
- resource(%d) of type (stream)
-}
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_variation92/sub_dir21/../../dir_variation91"
- ["handle"]=>
- resource(%d) of type (stream)
-}
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_variation92/sub_dir21/../../dir_variation91/sub_dir11/.."
- ["handle"]=>
- resource(%d) of type (stream)
-}
-object(Directory)#%d (2) {
- ["path"]=>
- string(%d) "%s/dir_variation91/sub_dir11/sub_dir111/../../../dir_variation92/sub_dir21/.."
- ["handle"]=>
- resource(%d) of type (stream)
-}
-
--- With invalid paths --
-
-Warning: dir(%s/dir_variation91/sub_dir12/sub_dir111/..): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: dir(%s/dir_variation92/sub_dir21/../dir_variation91): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: dir(%s/dir_variation92/sub_dir21/../../dir_variation91/sub_dir12/..): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: dir(%s/dir_variation91/sub_dir11/sub_dir111/../../dir_variation92/sub_dir21/..): failed to open dir: %s in %s on line %d
-bool(false)
-Done
---UEXPECTF--
-*** Testing dir() : checking with valid and invalid paths ***
-
-- With valid paths --
object(Directory)#%d (2) {
[u"path"]=>
?>
--EXPECTF--
*** Testing getcwd() : basic functionality ***
-string(%d) "%s"
-string(%d) "%s%egetcwd_basic"
-===DONE===
---UEXPECTF--
-*** Testing getcwd() : basic functionality ***
unicode(%d) "%s"
unicode(%d) "%s%egetcwd_basic"
===DONE===
Warning: getcwd() expects exactly 0 parameters, 1 given in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing getcwd() : error conditions ***
-
--- Testing getcwd() function with one argument --
-
-Warning: getcwd() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-===DONE===
resource(%d) of type (Unknown)
resource(%d) of type (Unknown)
===DONE===
---UEXPECTF--
-*** Testing opendir() : basic functionality ***
-
--- Testing opendir() with absolute path: --
-resource(%d) of type (stream)
-
--- Testing opendir() with relative paths: --
-bool(true)
-resource(%d) of type (stream)
-
--- Close directory handles: --
-resource(%d) of type (Unknown)
-resource(%d) of type (Unknown)
-===DONE===
Warning: opendir() expects at most 2 parameters, 3 given in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing opendir() : error conditions ***
-
--- Testing opendir() function with Zero arguments --
-
-Warning: opendir() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing opendir() function with more than expected no. of arguments --
-
-Warning: opendir() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-===DONE===
Warning: opendir(idonotexist): failed to open dir: %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing opendir() : error conditions ***
-
--- Pass a non-existent absolute path: --
-
-Warning: opendir(%s/idonotexist): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Pass a non-existent relative path: --
-
-Warning: opendir(idonotexist): failed to open dir: %s in %s on line %d
-bool(false)
-===DONE===
Warning: opendir(Resource id #%d): failed to open dir: %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: opendir(0): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Warning: opendir(1): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Warning: opendir(12345): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Warning: opendir(-2345): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Warning: opendir(10.5): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 6 --
-
-Warning: opendir(-10.5): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 7 --
-
-Warning: opendir(123456789000): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 8 --
-
-Warning: opendir(1.23456789E-9): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 9 --
-
-Warning: opendir(0.5): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 10 --
-bool(false)
-
--- Iteration 11 --
-bool(false)
-
--- Iteration 12 --
-
-Warning: opendir(1): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 13 --
-bool(false)
-
--- Iteration 14 --
-
-Warning: opendir(1): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 15 --
-bool(false)
-
--- Iteration 16 --
-bool(false)
-
--- Iteration 17 --
-bool(false)
-
--- Iteration 18 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: opendir(Array): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 19 --
-resource(%d) of type (stream)
-
--- Iteration 20 --
-
-Warning: opendir(string): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Iteration 21 --
-resource(%d) of type (stream)
-
--- Iteration 22 --
-resource(%d) of type (stream)
-
--- Iteration 23 --
-bool(false)
-
--- Iteration 24 --
-bool(false)
-
--- Iteration 25 --
-
-Warning: opendir(Resource id #%d): failed to open dir: %s in %s on line %d
-bool(false)
-===DONE===
-- Iteration 16 --
-Warning: opendir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 17 --
-
-Warning: opendir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 18 --
-
-Warning: opendir() expects parameter 2 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 19 --
-
-Warning: opendir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 20 --
-
-Warning: opendir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 21 --
-
-Warning: opendir() expects parameter 2 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 22 --
-
-Warning: opendir() expects parameter 2 to be resource, object given in %s on line %d
-NULL
-
--- Iteration 23 --
-
-Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 24 --
-
-Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 25 --
-
-Warning: opendir(): supplied resource is not a valid Stream-Context resource in %s on line %d
-resource(%d) of type (stream)
-===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variation ***
-
--- Iteration 1 --
-
-Warning: opendir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 2 --
-
-Warning: opendir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 3 --
-
-Warning: opendir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 4 --
-
-Warning: opendir() expects parameter 2 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 5 --
-
-Warning: opendir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 6 --
-
-Warning: opendir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 7 --
-
-Warning: opendir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 8 --
-
-Warning: opendir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 9 --
-
-Warning: opendir() expects parameter 2 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 10 --
-
-Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 11 --
-
-Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 12 --
-
-Warning: opendir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 13 --
-
-Warning: opendir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 14 --
-
-Warning: opendir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 15 --
-
-Warning: opendir() expects parameter 2 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 16 --
-
Warning: opendir() expects parameter 2 to be resource, Unicode string given in %s on line %d
NULL
New resource created
===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variation ***
-
--- Open directory first time: --
-resource(%d) of type (stream)
-
--- Open directory second time: --
-resource(%d) of type (stream)
-
-New resource created
-===DONE===
bool(true)
resource(%d) of type (stream)
===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variation ***
-
--- $path = './level_one': --
-bool(true)
-resource(%d) of type (stream)
-
--- $path = 'level_one/level_two': --
-bool(true)
-resource(%d) of type (stream)
-
--- $path = '..': --
-resource(%d) of type (stream)
-
--- $path = 'level_two', '.': --
-bool(true)
-resource(%d) of type (stream)
-
--- $path = '../': --
-resource(%d) of type (stream)
-
--- $path = './': --
-bool(true)
-resource(%d) of type (stream)
-
--- $path = '../../'level_one': --
-bool(true)
-resource(%d) of type (stream)
-===DONE===
Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variations ***
-
--- After restricting 1st level parent directory --
-
-Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
-bool(false)
-
--- After restricting parent directory --
-
-Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
-bool(false)
-===DONE===
Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variations ***
-
--- Wildcard = '*' --
-
-Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: opendir(%s/*): failed to open dir: %s in %s on line %d
-bool(false)
-
--- Wildcard = '?' --
-
-Warning: opendir(%s/opendir_variation6/sub_dir?): failed to open dir: %s in %s on line %d
-bool(false)
-
-Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
-bool(false)
-===DONE===
bool(true)
resource(%d) of type (stream)
===DONE===
---UEXPECTF--
-*** Testing opendir() : usage variations ***
-
--- Iteration 1 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 2 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 3 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 4 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 5 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 6 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 7 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 8 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 9 --
-bool(true)
-resource(%d) of type (stream)
-
--- Iteration 10 --
-bool(true)
-resource(%d) of type (stream)
-===DONE===
--EXPECTF--
*** Testing readdir() : basic functionality ***
--- Call readdir() with $path argument --
-resource(%d) of type (stream)
-string(1) "."
-string(2) ".."
-string(18) "readdir_basic1.tmp"
-string(18) "readdir_basic2.tmp"
-string(18) "readdir_basic3.tmp"
-
--- Call readdir() without $path argument --
-resource(%d) of type (stream)
-string(1) "."
-string(2) ".."
-string(18) "readdir_basic1.tmp"
-string(18) "readdir_basic2.tmp"
-string(18) "readdir_basic3.tmp"
-===DONE===
---UEXPECTF--
-*** Testing readdir() : basic functionality ***
-
-- Call readdir() with $path argument --
resource(%d) of type (stream)
unicode(1) "."
Warning: Wrong parameter count for readdir() in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing readdir() : error conditions ***
-
--- Testing readdir() function with more than expected no. of arguments --
-
-Warning: Wrong parameter count for readdir() in %s on line %d
-NULL
-===DONE===
Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing readdir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 6 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 7 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 8 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 9 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 10 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 11 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 12 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 13 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 14 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 15 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 16 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 17 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 18 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 19 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 20 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 21 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 22 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 23 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 24 --
-
-Warning: readdir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-===DONE===
$path = dirname(__FILE__) . '/readdir_variation2';
rmdir($path);
?>
---EXPECTF--
-*** Testing readdir() : usage variations ***
-
--- Pass an empty directory to readdir() --
-string(1) "."
-string(2) ".."
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
-- Pass an empty directory to readdir() --
rmdir($path_sub);
rmdir($path_top);
?>
---EXPECTF--
-*** Testing readdir() : usage variations ***
-array(5) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(9) "file1.tmp"
- [3]=>
- string(9) "file2.tmp"
- [4]=>
- string(10) "sub_folder"
-}
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
array(5) {
[0]=>
resource(%d) of type (stream)
int(2)
--- Call to readdir() --
-array(16) {
- [0]=>
- string(9) "-10.5.tmp"
- [1]=>
- string(9) "-2345.tmp"
- [2]=>
- string(1) "."
- [3]=>
- string(2) ".."
- [4]=>
- string(4) ".tmp"
- [5]=>
- string(7) "0.5.tmp"
- [6]=>
- string(5) "0.tmp"
- [7]=>
- string(17) "1.23456789E-9.tmp"
- [8]=>
- string(5) "1.tmp"
- [9]=>
- string(8) "10.5.tmp"
- [10]=>
- string(9) "12345.tmp"
- [11]=>
- string(16) "123456789000.tmp"
- [12]=>
- string(9) "Array.tmp"
- [13]=>
- string(15) "double_file.tmp"
- [14]=>
- string(11) "hd_file.tmp"
- [15]=>
- string(15) "single_file.tmp"
-}
-===DONE===
---UEXPECTF--
-*** Testing readdir() : usage variations ***
-
--- Iteration 1 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 2 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 3 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 4 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 5 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 6 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 7 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 8 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 9 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 10 --
-resource(%d) of type (stream)
-int(1)
-
--- Iteration 11 --
-
-Notice: Array to string conversion in %s on line %d
-resource(%d) of type (stream)
-int(2)
-
--- Iteration 12 --
-resource(%d) of type (stream)
-int(2)
-
--- Iteration 13 --
-resource(%d) of type (stream)
-int(2)
-
--- Iteration 14 --
-resource(%d) of type (stream)
-int(2)
-
-- Call to readdir() --
array(16) {
[0]=>
--EXPECTF--
*** Testing readdir() : usage variations ***
--- Iteration 1 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 2 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 3 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 4 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 5 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 6 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 7 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 8 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 9 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-
--- Iteration 10 --
-bool(true)
-resource(%d) of type (stream)
--- Calling readdir() --
-string(%d) "%s"
-===DONE===
---UEXPECTF--
-*** Testing readdir() : usage variations ***
-
-- Iteration 1 --
bool(true)
resource(%d) of type (stream)
$dir_path = dirname(__FILE__) . "/readdir_variation6";
rmdir($dir_path);
?>
---EXPECTF--
-*** Testing readdir() : usage variations ***
-
--- Reading Directory Contents with Previous Handle --
-string(1) "."
-string(2) ".."
-string(23) "readdir_variation61.tmp"
-string(23) "readdir_variation62.tmp"
-string(23) "readdir_variation63.tmp"
-
--- Reading Directory Contents with Current Handle (no arguments supplied) --
-string(1) "."
-string(2) ".."
-string(23) "readdir_variation61.tmp"
-string(23) "readdir_variation62.tmp"
-string(23) "readdir_variation63.tmp"
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
-- Reading Directory Contents with Previous Handle --
Warning: readdir(): %d is not a valid Directory resource in %s on line %d
bool(false)
-===DONE===
---UEXPECTF--
-*** Testing readdir() : usage variations ***
-resource(%d) of type (stream)
-
-Warning: readdir(): %d is not a valid Directory resource in %s on line %d
-bool(false)
resource(%d) of type (stream)
resource(%d) of type (stream)
--- Read and rewind first directory (argument supplied) --
-array(3) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(9) "file1.tmp"
-}
-NULL
-string(1) "."
-
--- Read and rewind second directory (no argument supplied) --
-array(3) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(9) "file2.tmp"
-}
-NULL
-string(1) "."
-===DONE===
---UEXPECTF--
-*** Testing rewinddir() : basic functionality ***
-resource(%d) of type (stream)
-resource(%d) of type (stream)
-
-- Read and rewind first directory (argument supplied) --
unicode(1) "."
unicode(2) ".."
Warning: Wrong parameter count for rewinddir() in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing rewinddir() : error conditions ***
-
--- Testing rewinddir() function with more than expected no. of arguments --
-
-Warning: Wrong parameter count for rewinddir() in %s on line %d
-NULL
-===DONE===
Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing rewinddir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 6 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 7 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 8 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 9 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 10 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 11 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 12 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 13 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 14 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 15 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 16 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 17 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 18 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 19 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 20 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 21 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 22 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 23 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Iteration 24 --
-
-Warning: rewinddir(): supplied argument is not a valid Directory resource in %s on line %d
-bool(false)
-===DONE===
--EXPECTF--
*** Testing rewinddir() : usage variations ***
--- Create the directory handle, read and close the directory --
-resource(%d) of type (stream)
-string(1) "."
-
--- Call to rewinddir() --
-
-Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
-bool(false)
-===DONE===
---UEXPECTF--
-*** Testing rewinddir() : usage variations ***
-
-- Create the directory handle, read and close the directory --
resource(%d) of type (stream)
unicode(1) "."
-- Check if rewinddir() has repositioned the file pointer --
rewinddir() does not work on file pointers
===DONE===
---UEXPECTF--
-*** Testing rewinddir() : usage variations ***
-
--- Open a file using fopen --
-resource(%d) of type (stream)
-
-Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
-bool(false)
-
--- Check if rewinddir() has repositioned the file pointer --
-rewinddir() does not work on file pointers
-===DONE===
$directory = dirname(__FILE__) . '/scandir_basic';
rmdir($directory);
?>
---EXPECTF--
-*** Testing scandir() : basic functionality ***
-
--- scandir() with mandatory arguments --
-array(5) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(9) "file1.tmp"
- [3]=>
- string(9) "file2.tmp"
- [4]=>
- string(9) "file3.tmp"
-}
-
--- scandir() with all arguments --
-array(5) {
- [0]=>
- string(9) "file3.tmp"
- [1]=>
- string(9) "file2.tmp"
- [2]=>
- string(9) "file1.tmp"
- [3]=>
- string(2) ".."
- [4]=>
- string(1) "."
-}
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing scandir() : basic functionality ***
-- scandir() with mandatory arguments --
Warning: scandir() expects at most 3 parameters, 4 given in %s on line %d
NULL
===DONE===
---UEXPECTF--
-*** Testing scandir() : error conditions ***
-
--- Testing scandir() function with Zero arguments --
-
-Warning: scandir() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing scandir() function with more than expected no. of arguments --
-
-Warning: scandir() expects at most 3 parameters, 4 given in %s on line %d
-NULL
-===DONE===
Warning: scandir(): (errno %d): %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing scandir() : error conditions ***
-
--- Pass scandir() an absolute path that does not exist --
-
-Warning: scandir(%s/idonotexist): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Pass scandir() a relative path that does not exist --
-
-Warning: scandir(/idonotexist): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-===DONE===
Warning: scandir(): (errno %d): %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing scandir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: scandir(0): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 2 --
-
-Warning: scandir(1): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 3 --
-
-Warning: scandir(12345): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 4 --
-
-Warning: scandir(-2345): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 5 --
-
-Warning: scandir(10.5): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 6 --
-
-Warning: scandir(-10.5): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 7 --
-
-Warning: scandir(123456789000): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 8 --
-
-Warning: scandir(1.23456789E-9): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 9 --
-
-Warning: scandir(0.5): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 10 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 11 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 12 --
-
-Warning: scandir(1): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 13 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 14 --
-
-Warning: scandir(1): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 15 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 16 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 17 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 18 --
-
-Notice: Array to string conversion in %s on line %d
-
-Warning: scandir(Array): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 19 --
-
-Warning: scandir(string): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 20 --
-
-Warning: scandir(string): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 21 --
-
-Warning: scandir(hello world): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 22 --
-
-Warning: scandir(Class A object): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 23 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 24 --
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Iteration 25 --
-
-Warning: scandir(Resource id #%d): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-===DONE===
--EXPECTF--
*** Testing scandir() : usage variations ***
--- Iteration 1 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 2 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 3 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 4 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 5 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 6 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 7 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 8 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 9 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 10 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 11 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 12 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 13 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 14 --
-array(2) {
- [0]=>
- string(2) ".."
- [1]=>
- string(1) "."
-}
-
--- Iteration 15 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 16 --
-
-Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
-NULL
-
--- Iteration 17 --
-
-Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
-NULL
-
--- Iteration 18 --
-
-Warning: scandir() expects parameter 2 to be long, array given in %s on line %d
-NULL
-
--- Iteration 19 --
-
-Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
-NULL
-
--- Iteration 20 --
-
-Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
-NULL
-
--- Iteration 21 --
-
-Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
-NULL
-
--- Iteration 22 --
-
-Warning: scandir() expects parameter 2 to be long, object given in %s on line %d
-NULL
-
--- Iteration 23 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 24 --
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 25 --
-
-Warning: scandir() expects parameter 2 to be long, resource given in %s on line %d
-NULL
-===DONE===
---UEXPECTF--
-*** Testing scandir() : usage variations ***
-
-- Iteration 1 --
array(2) {
[0]=>
-- Iteration 16 --
-Warning: scandir() expects parameter 3 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 17 --
-
-Warning: scandir() expects parameter 3 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 18 --
-
-Warning: scandir() expects parameter 3 to be resource, array given in %s on line %d
-NULL
-
--- Iteration 19 --
-
-Warning: scandir() expects parameter 3 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 20 --
-
-Warning: scandir() expects parameter 3 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 21 --
-
-Warning: scandir() expects parameter 3 to be resource, string given in %s on line %d
-NULL
-
--- Iteration 22 --
-
-Warning: scandir() expects parameter 3 to be resource, object given in %s on line %d
-NULL
-
--- Iteration 23 --
-
-Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 24 --
-
-Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 25 --
-
-Warning: scandir(): supplied resource is not a valid Stream-Context resource in %s on line %d
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-===DONE===
---UEXPECTF--
-*** Testing scandir() : usage variations ***
-
--- Iteration 1 --
-
-Warning: scandir() expects parameter 3 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 2 --
-
-Warning: scandir() expects parameter 3 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 3 --
-
-Warning: scandir() expects parameter 3 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 4 --
-
-Warning: scandir() expects parameter 3 to be resource, integer given in %s on line %d
-NULL
-
--- Iteration 5 --
-
-Warning: scandir() expects parameter 3 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 6 --
-
-Warning: scandir() expects parameter 3 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 7 --
-
-Warning: scandir() expects parameter 3 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 8 --
-
-Warning: scandir() expects parameter 3 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 9 --
-
-Warning: scandir() expects parameter 3 to be resource, double given in %s on line %d
-NULL
-
--- Iteration 10 --
-
-Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 11 --
-
-Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
-NULL
-
--- Iteration 12 --
-
-Warning: scandir() expects parameter 3 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 13 --
-
-Warning: scandir() expects parameter 3 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 14 --
-
-Warning: scandir() expects parameter 3 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 15 --
-
-Warning: scandir() expects parameter 3 to be resource, boolean given in %s on line %d
-NULL
-
--- Iteration 16 --
-
Warning: scandir() expects parameter 3 to be resource, Unicode string given in %s on line %d
NULL
rmdir("$dir_path/level_one/level_two");
rmdir("$dir_path/level_one");
?>
---EXPECTF--
-*** Testing scandir() : usage variations ***
-
--- $path = './level_one': --
-bool(true)
-array(5) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_one1.tmp"
- [3]=>
- string(14) "level_one2.tmp"
- [4]=>
- string(9) "level_two"
-}
-
--- $path = 'level_one/level_two': --
-bool(true)
-array(4) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_two1.tmp"
- [3]=>
- string(14) "level_two2.tmp"
-}
-
--- $path = '..': --
-bool(true)
-array(5) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_one1.tmp"
- [3]=>
- string(14) "level_one2.tmp"
- [4]=>
- string(9) "level_two"
-}
-
--- $path = 'level_two', '.': --
-bool(true)
-array(4) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_two1.tmp"
- [3]=>
- string(14) "level_two2.tmp"
-}
-
--- $path = '../': --
-bool(true)
-array(5) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_one1.tmp"
- [3]=>
- string(14) "level_one2.tmp"
- [4]=>
- string(9) "level_two"
-}
-
--- $path = './': --
-bool(true)
-array(4) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_two1.tmp"
- [3]=>
- string(14) "level_two2.tmp"
-}
-
--- $path = '../../'level_one': --
-bool(true)
-array(5) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(14) "level_one1.tmp"
- [3]=>
- string(14) "level_one2.tmp"
- [4]=>
- string(9) "level_two"
-}
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
-- $path = './level_one': --
Warning: scandir(): (errno %d): %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing scandir() : usage variations ***
-
--- After restricting 1st level parent directory --
-
-Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- After restricting parent directory --
-
-Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-===DONE===
Warning: scandir(): (errno %d): %s in %s on line %d
bool(false)
===DONE===
---UEXPECTF--
-*** Testing scandir() : usage variations ***
-
--- Wildcard = '*' --
-
-Warning: scandir(%s/scandir_var*): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
-Warning: scandir(%s/*): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
--- Wildcard = '?' --
-
-Warning: scandir(%s/scandir_variation6/sub_dir?): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-
-Warning: scandir(%s/scandir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
-
-Warning: scandir(): (errno %d): %s in %s on line %d
-bool(false)
-===DONE===
$dir_path = dirname(__FILE__) . "/scandir_variation7";
rmdir($dir_path);
?>
---EXPECTF--
-*** Testing scandir() : usage variations ***
-
--- Iteration 1 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 2 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 3 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 4 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 5 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 6 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 7 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 8 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 9 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-
--- Iteration 10 --
-bool(true)
-array(2) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
-}
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
-- Iteration 1 --
-- Iteration 14 --
resource(%d) of type (stream)
--- Call to scandir() --
-array(16) {
- [0]=>
- string(9) "-10.5.tmp"
- [1]=>
- string(9) "-2345.tmp"
- [2]=>
- string(1) "."
- [3]=>
- string(2) ".."
- [4]=>
- string(4) ".tmp"
- [5]=>
- string(7) "0.5.tmp"
- [6]=>
- string(5) "0.tmp"
- [7]=>
- string(17) "1.23456789E-9.tmp"
- [8]=>
- string(5) "1.tmp"
- [9]=>
- string(8) "10.5.tmp"
- [10]=>
- string(9) "12345.tmp"
- [11]=>
- string(16) "123456789000.tmp"
- [12]=>
- string(9) "Array.tmp"
- [13]=>
- string(15) "double_file.tmp"
- [14]=>
- string(11) "hd_file.tmp"
- [15]=>
- string(15) "single_file.tmp"
-}
-===DONE===
---UEXPECTF--
-*** Testing scandir() : usage variations ***
-
--- Iteration 1 --
-resource(%d) of type (stream)
-
--- Iteration 2 --
-resource(%d) of type (stream)
-
--- Iteration 3 --
-resource(%d) of type (stream)
-
--- Iteration 4 --
-resource(%d) of type (stream)
-
--- Iteration 5 --
-resource(%d) of type (stream)
-
--- Iteration 6 --
-resource(%d) of type (stream)
-
--- Iteration 7 --
-resource(%d) of type (stream)
-
--- Iteration 8 --
-resource(%d) of type (stream)
-
--- Iteration 9 --
-resource(%d) of type (stream)
-
--- Iteration 10 --
-resource(%d) of type (stream)
-
--- Iteration 11 --
-
-Notice: Array to string conversion in %s on line %d
-resource(%d) of type (stream)
-
--- Iteration 12 --
-resource(%d) of type (stream)
-
--- Iteration 13 --
-resource(%d) of type (stream)
-
--- Iteration 14 --
-resource(%d) of type (stream)
-
-- Call to scandir() --
array(16) {
[0]=>
$dir = dirname(__FILE__) . '/scandir_variation9';
rmdir($dir);
?>
---EXPECTF--
-*** Testing scandir() : usage variations ***
-array(4) {
- [0]=>
- string(9) "file2.tmp"
- [1]=>
- string(9) "file1.tmp"
- [2]=>
- string(2) ".."
- [3]=>
- string(1) "."
-}
-array(4) {
- [0]=>
- string(9) "file2.tmp"
- [1]=>
- string(9) "file1.tmp"
- [2]=>
- string(2) ".."
- [3]=>
- string(1) "."
-}
-array(4) {
- [0]=>
- string(1) "."
- [1]=>
- string(2) ".."
- [2]=>
- string(9) "file1.tmp"
- [3]=>
- string(9) "file2.tmp"
-}
-===DONE===
---UEXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
array(4) {
[0]=>