From c6b74fe20913a7e30c8b9642a17a75c716091ef6 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 16 Sep 2011 10:45:04 +0000 Subject: [PATCH] - add -win32 versions and skipif --- .../tests/dir/dir_variation1-win32.phpt | 170 +++++++++++ ext/standard/tests/dir/dir_variation1.phpt | 6 + .../tests/dir/dir_variation5-win32.phpt | 37 +++ ext/standard/tests/dir/dir_variation5.phpt | 6 + .../tests/dir/dir_variation6-win32.phpt | 61 ++++ ext/standard/tests/dir/dir_variation6.phpt | 6 + .../tests/dir/dir_variation8-win32.phpt | 68 +++++ ext/standard/tests/dir/dir_variation8.phpt | 6 + .../tests/dir/dir_variation9-win32.phpt | 125 ++++++++ ext/standard/tests/dir/dir_variation9.phpt | 6 + .../tests/dir/opendir_error2-win32.phpt | 47 +++ ext/standard/tests/dir/opendir_error2.phpt | 6 + .../tests/dir/opendir_variation1-win32.phpt | 248 +++++++++++++++ .../tests/dir/opendir_variation1.phpt | 6 + .../tests/dir/opendir_variation6-win32.phpt | 75 +++++ .../tests/dir/opendir_variation6.phpt | 6 + .../tests/dir/scandir_error2-win32.phpt | 51 ++++ ext/standard/tests/dir/scandir_error2.phpt | 6 + .../tests/dir/scandir_variation1-win32.phpt | 289 ++++++++++++++++++ .../tests/dir/scandir_variation1.phpt | 6 + .../tests/dir/scandir_variation6-win32.phpt | 84 +++++ .../tests/dir/scandir_variation6.phpt | 6 + .../file_get_contents_variation8-win32.phpt | 15 +- .../file/file_get_contents_variation8.phpt | 5 +- .../tests/file/popen_pclose_error-win32.phpt | 9 +- .../tests/file/rename_variation13-win32.phpt | Bin 4547 -> 4547 bytes .../tests/file/tempnam_variation7-win32.phpt | 6 +- 27 files changed, 1340 insertions(+), 16 deletions(-) create mode 100644 ext/standard/tests/dir/dir_variation1-win32.phpt create mode 100644 ext/standard/tests/dir/dir_variation5-win32.phpt create mode 100644 ext/standard/tests/dir/dir_variation6-win32.phpt create mode 100644 ext/standard/tests/dir/dir_variation8-win32.phpt create mode 100644 ext/standard/tests/dir/dir_variation9-win32.phpt create mode 100644 ext/standard/tests/dir/opendir_error2-win32.phpt create mode 100644 ext/standard/tests/dir/opendir_variation1-win32.phpt create mode 100644 ext/standard/tests/dir/opendir_variation6-win32.phpt create mode 100644 ext/standard/tests/dir/scandir_error2-win32.phpt create mode 100644 ext/standard/tests/dir/scandir_variation1-win32.phpt create mode 100644 ext/standard/tests/dir/scandir_variation6-win32.phpt diff --git a/ext/standard/tests/dir/dir_variation1-win32.phpt b/ext/standard/tests/dir/dir_variation1-win32.phpt new file mode 100644 index 0000000000..1f7f4a2cf3 --- /dev/null +++ b/ext/standard/tests/dir/dir_variation1-win32.phpt @@ -0,0 +1,170 @@ +--TEST-- +Test dir() function : usage variations - unexpected value for 'dir' argument +--SKIPIF-- + +--FILE-- +var = 10; + } +} + +// get a resource variable +$fp = fopen(__FILE__, "r"); // get a file handle +$dfp = opendir( dirname(__FILE__) ); // get a dir handle + +// unexpected values to be passed to $directory argument +$unexpected_values = array ( + + // array data +/*1*/ array(), + array(0), + array(1), + array(1, 2), + array('color' => 'red', 'item' => 'pen'), + + // null data +/*6*/ NULL, + null, + + // boolean data +/*8*/ true, + false, + TRUE, + FALSE, + + // empty data +/*12*/ "", + '', + + // undefined data +/*14*/ @$undefined_var, + + // unset data +/*15*/ @$unset_var, + + // resource variable(dir and file handle) +/*16*/ $fp, + $dfp, + + // object data +/*18*/ new A() +); + +// loop through various elements of $unexpected_values to check the behavior of dir() +$iterator = 1; +foreach( $unexpected_values as $unexpected_value ) { + echo "\n-- Iteration $iterator --\n"; + var_dump( dir($unexpected_value) ); + $iterator++; +} + +fclose($fp); +closedir($dfp); +echo "Done"; +?> +--EXPECTF-- +*** Testing dir() : unexpected values for $directory argument *** + +-- Iteration 1 -- + +Warning: dir() expects parameter 1 to be string, array given in %s on line %d +NULL + +-- Iteration 2 -- + +Warning: dir() expects parameter 1 to be string, array given in %s on line %d +NULL + +-- Iteration 3 -- + +Warning: dir() expects parameter 1 to be string, array given in %s on line %d +NULL + +-- Iteration 4 -- + +Warning: dir() expects parameter 1 to be string, array given in %s on line %d +NULL + +-- Iteration 5 -- + +Warning: dir() expects parameter 1 to be string, array given in %s on line %d +NULL + +-- Iteration 6 -- +bool(false) + +-- Iteration 7 -- +bool(false) + +-- Iteration 8 -- + +Warning: dir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: dir(1): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 9 -- +bool(false) + +-- Iteration 10 -- + +Warning: dir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +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() expects parameter 1 to be string, resource given in %s on line %d +NULL + +-- Iteration 17 -- + +Warning: dir() expects parameter 1 to be string, resource given in %s on line %d +NULL + +-- Iteration 18 -- + +Warning: dir() expects parameter 1 to be string, object given in %s on line %d +NULL +Done \ No newline at end of file diff --git a/ext/standard/tests/dir/dir_variation1.phpt b/ext/standard/tests/dir/dir_variation1.phpt index ad912c008f..abb4719504 100644 --- a/ext/standard/tests/dir/dir_variation1.phpt +++ b/ext/standard/tests/dir/dir_variation1.phpt @@ -1,5 +1,11 @@ --TEST-- Test dir() function : usage variations - unexpected value for 'dir' argument +--SKIPIF-- + --FILE-- +--FILE-- + +--EXPECTF-- +*** Testing dir() : open a file instead of a directory *** + +Warning: dir(%s): The directory name is invalid. (code: %d) in %s on line %d + +Warning: dir(%s): failed to open dir: %s in %s on line %d +bool(false) +Done diff --git a/ext/standard/tests/dir/dir_variation5.phpt b/ext/standard/tests/dir/dir_variation5.phpt index 2399c634c5..c7450eafc0 100644 --- a/ext/standard/tests/dir/dir_variation5.phpt +++ b/ext/standard/tests/dir/dir_variation5.phpt @@ -1,5 +1,11 @@ --TEST-- Test dir() function : usage variations - open a file instead of directory +--SKIPIF-- + --FILE-- +--FILE-- +close(); //close the dir + +// remove directory and try to open the same(non-existent) directory again +rmdir($dir_path); +clearstatcache(); + +echo "-- opening previously removed directory --\n"; +var_dump( dir($dir_path) ); + +// point to a non-existent directory +$non_existent_dir = $file_path."/non_existent_dir"; +echo "-- opening non-existent directory --\n"; +$d = dir($non_existent_dir); +var_dump( $d ); + +echo "Done"; +?> +--EXPECTF-- +*** Testing dir() : open a non-existent directory *** +-- opening previously removed directory -- + +Warning: dir(%s): The system cannot find the file specified. (code: %d) in %s on line %d + +Warning: dir(%s): failed to open dir: %s in %s on line %d +bool(false) +-- opening non-existent directory -- + +Warning: dir(%s): The system cannot find the file specified. (code: %d) in %s on line %d + +Warning: dir(%s): failed to open dir: %s in %s on line %d +bool(false) +Done diff --git a/ext/standard/tests/dir/dir_variation6.phpt b/ext/standard/tests/dir/dir_variation6.phpt index e42057ed15..71cbf1fa17 100644 --- a/ext/standard/tests/dir/dir_variation6.phpt +++ b/ext/standard/tests/dir/dir_variation6.phpt @@ -1,5 +1,11 @@ --TEST-- Test dir() function : usage variations - non-existent directory +--SKIPIF-- + --FILE-- +--FILE-- + +--EXPECTF-- +*** Testing dir() : checking with wildcard characters *** +-- wildcard = '*' -- + +Warning: dir(%s/dir_var*,%s/dir_var*): No such file or directory in %s on line %d + +Warning: dir(%s/dir_var*): failed to open dir: %s in %s on line %d +bool(false) + +Warning: dir(%s/*,%s/*): No such file or directory in %s on line %d + +Warning: dir(%s/*): failed to open dir: %s in %s on line %d +bool(false) +-- wildcard = '?' -- + +Warning: dir(%s/dir_variation81/sub_dir?,%s/dir_variation81/sub_dir?): No such file or directory in %s on line %d + +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,%s/dir_variation81/sub?dir1): No such file or directory in %s on line %d + +Warning: dir(%s/dir_variation81/sub?dir1): failed to open dir: %s in %s on line %d +bool(false) +Done diff --git a/ext/standard/tests/dir/dir_variation8.phpt b/ext/standard/tests/dir/dir_variation8.phpt index a0b74a3f61..5ecf449923 100644 --- a/ext/standard/tests/dir/dir_variation8.phpt +++ b/ext/standard/tests/dir/dir_variation8.phpt @@ -1,5 +1,11 @@ --TEST-- Test dir() function : usage variations - checking with wildcard characters +--SKIPIF-- + --FILE-- +--FILE-- + +--CLEAN-- + +--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(%sdir_variation91/sub_dir12/sub_dir111/..,%sdir_variation91/sub_dir12/sub_dir111/..): The system cannot find the path specified. (code: 3) in %sdir_variation9-win32.php on line %d + +Warning: dir(%s/dir_variation91/sub_dir12/sub_dir111/..): failed to open dir: %s in %s on line %d +bool(false) + +Warning: dir(%sdir_variation92/sub_dir21/../dir_variation91,%sdir_variation92/sub_dir21/../dir_variation91): The system cannot find the file specified. (code: 2) in %sdir_variation9-win32.php on line %d + +Warning: dir(%s/dir_variation92/sub_dir21/../dir_variation91): failed to open dir: %s in %s on line %d +bool(false) + +Warning: dir(%sdir_variation92/sub_dir21/../../dir_variation91/sub_dir12/..,%sdir_variation92/sub_dir21/../../dir_variation91/sub_dir12/..): The system cannot find the file specified. (code: 2) in %sdir_variation9-win32.php on line %d + +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(%sdir_variation91/sub_dir11/sub_dir111/../../dir_variation92/sub_dir21/..,%sdir_variation91/sub_dir11/sub_dir111/../../dir_variation92/sub_dir21/..): The system cannot find the path specified. (code: 3) in %sdir_variation9-win32.php on line %d + +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 diff --git a/ext/standard/tests/dir/dir_variation9.phpt b/ext/standard/tests/dir/dir_variation9.phpt index 22f3d5baab..458d0b896f 100644 --- a/ext/standard/tests/dir/dir_variation9.phpt +++ b/ext/standard/tests/dir/dir_variation9.phpt @@ -1,5 +1,11 @@ --TEST-- Test dir() function : usage variations - relative valid and invalid paths +--SKIPIF-- + --FILE-- +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing opendir() : error conditions *** + +-- Pass a non-existent absolute path: -- + +Warning: opendir(%s/idonotexist,%s/idonotexist): The system cannot find the file specified. (code: %d) in %s on line %d + +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,idonotexist): The system cannot find the file specified. (code: %d) in %s on line %d + +Warning: opendir(idonotexist): failed to open dir: %s in %s on line %d +bool(false) +===DONE=== diff --git a/ext/standard/tests/dir/opendir_error2.phpt b/ext/standard/tests/dir/opendir_error2.phpt index 0762be2ad3..1c724097b0 100644 --- a/ext/standard/tests/dir/opendir_error2.phpt +++ b/ext/standard/tests/dir/opendir_error2.phpt @@ -1,5 +1,11 @@ --TEST-- Test opendir() function : error conditions - Non-existent directory +--SKIPIF-- + --FILE-- +--FILE-- +path = $path; + } + public function __toString() { + return $this->path; + } +} + +// heredoc string +$heredoc = << +===DONE=== +--CLEAN-- + +--EXPECTF-- +*** Testing opendir() : usage variations *** + +-- Iteration 1 -- + +Warning: opendir(0,0): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(0): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 2 -- + +Warning: opendir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(1): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 3 -- + +Warning: opendir(12345,12345): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(12345): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 4 -- + +Warning: opendir(-2345,-2345): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(-2345): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 5 -- + +Warning: opendir(10.5,10.5): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(10.5): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 6 -- + +Warning: opendir(-10.5,-10.5): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(-10.5): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 7 -- + +Warning: opendir(123456789000,123456789000): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(123456789000): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 8 -- + +Warning: opendir(1.23456789E-9,1.23456789E-9): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(1.23456789E-9): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 9 -- + +Warning: opendir(0.5,0.5): The system cannot find the file specified. (code: 2) in %s on line %d + +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,1): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: opendir(1): failed to open dir: %s in %s on line %d +bool(false) + +-- Iteration 13 -- +bool(false) + +-- Iteration 14 -- + +Warning: opendir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +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 -- + +Warning: opendir() expects parameter 1 to be string, array given in %s on line %d +NULL + +-- Iteration 19 -- +resource(%d) of type (stream) + +-- Iteration 20 -- + +Warning: opendir(string,string): The system cannot find the file specified. (code: 2) in %s on line %d + +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() expects parameter 1 to be string, resource given in %s on line %d +NULL +===DONE=== diff --git a/ext/standard/tests/dir/opendir_variation1.phpt b/ext/standard/tests/dir/opendir_variation1.phpt index dc10356f56..8d195e1e62 100644 --- a/ext/standard/tests/dir/opendir_variation1.phpt +++ b/ext/standard/tests/dir/opendir_variation1.phpt @@ -1,5 +1,11 @@ --TEST-- Test opendir() function : usage variations - different data types as $path arg +--SKIPIF-- + --FILE-- +--FILE-- + +===DONE=== +--CLEAN-- + +--EXPECTF-- +*** Testing opendir() : usage variations *** + +-- Wildcard = '*' -- + +Warning: opendir(%s/opendir_var*,%s/opendir_var*): No such file or directory in %s on line %d + +Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d +bool(false) + +Warning: opendir(%s/*,%s/*): No such file or directory in %s on line %d + +Warning: opendir(%s/*): failed to open dir: %s in %s on line %d +bool(false) + +-- Wildcard = '?' -- + +Warning: opendir(%s/opendir_variation6/sub_dir?,%s/opendir_variation6/sub_dir?): No such file or directory in %s on line %d + +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,%s/opendir_variation6/sub?dir1): No such file or directory in %s on line %d + +Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d +bool(false) +===DONE=== diff --git a/ext/standard/tests/dir/opendir_variation6.phpt b/ext/standard/tests/dir/opendir_variation6.phpt index 01e8225d59..f3fc0bd6df 100644 --- a/ext/standard/tests/dir/opendir_variation6.phpt +++ b/ext/standard/tests/dir/opendir_variation6.phpt @@ -1,5 +1,11 @@ --TEST-- Test opendir() function : usage variations - Different wildcards +--SKIPIF-- + --FILE-- +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing scandir() : error conditions *** + +-- Pass scandir() an absolute path that does not exist -- + +Warning: scandir(%s/idonotexist,%s/idonotexist): The system cannot find the file specified. (code: 2) in %s on line %d + +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,/idonotexist): The system cannot find the file specified. (code: 2) in %s on line %d + +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=== diff --git a/ext/standard/tests/dir/scandir_error2.phpt b/ext/standard/tests/dir/scandir_error2.phpt index 1e99a578ac..b5bfc28c8e 100644 --- a/ext/standard/tests/dir/scandir_error2.phpt +++ b/ext/standard/tests/dir/scandir_error2.phpt @@ -1,5 +1,11 @@ --TEST-- Test scandir() function : error conditions - Non-existent directory +--SKIPIF-- + --FILE-- +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing scandir() : usage variations *** + +-- Iteration 1 -- + +Warning: scandir(0,0): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(0): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 2 -- + +Warning: scandir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(1): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 3 -- + +Warning: scandir(12345,12345): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(12345): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 4 -- + +Warning: scandir(-2345,-2345): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(-2345): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 5 -- + +Warning: scandir(10.5,10.5): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(10.5): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 6 -- + +Warning: scandir(-10.5,-10.5): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(-10.5): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 7 -- + +Warning: scandir(123456789000,123456789000): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(123456789000): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 8 -- + +Warning: scandir(1.23456789E-9,1.23456789E-9): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(1.23456789E-9): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 9 -- + +Warning: scandir(0.5,0.5): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(0.5): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 10 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 11 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 12 -- + +Warning: scandir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(1): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 13 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 14 -- + +Warning: scandir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(1): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 15 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 16 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 17 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 18 -- + +Warning: scandir() expects parameter 1 to be a valid path, array given in %s on line %d +NULL + +-- Iteration 19 -- + +Warning: scandir(string,string): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(string): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 20 -- + +Warning: scandir(string,string): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(string): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 21 -- + +Warning: scandir(hello world,hello world): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(hello world): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 22 -- + +Warning: scandir(Class A object,Class A object): The system cannot find the file specified. (code: 2) in %s on line %d + +Warning: scandir(Class A object): failed to open dir: No such file or directory in %sscandir_variation1-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Iteration 23 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 24 -- + +Warning: scandir(): Directory name cannot be empty in %s on line %d +bool(false) + +-- Iteration 25 -- + +Warning: scandir() expects parameter 1 to be a valid path, resource given in %s on line %d +NULL +===DONE=== diff --git a/ext/standard/tests/dir/scandir_variation1.phpt b/ext/standard/tests/dir/scandir_variation1.phpt index 0b35413ada..ccd5bb967a 100644 --- a/ext/standard/tests/dir/scandir_variation1.phpt +++ b/ext/standard/tests/dir/scandir_variation1.phpt @@ -1,5 +1,11 @@ --TEST-- Test scandir() function : usage variations - different data types as $dir arg +--SKIPIF-- + --FILE-- +--FILE-- + +===DONE=== +--CLEAN-- + +--EXPECTF-- +*** Testing scandir() : usage variations *** + +-- Wildcard = '*' -- + +Warning: scandir(%s/scandir_var*,%s/scandir_var*): No such file or directory in %s on line %d + +Warning: scandir(%s/scandir_var*): failed to open dir: No such file or directory in %sscandir_variation6-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +Warning: scandir(%s/*,%s/*): No such file or directory in %s on line %d + +Warning: scandir(%s/*): failed to open dir: No such file or directory in %sscandir_variation6-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +-- Wildcard = '?' -- + +Warning: scandir(%s/scandir_variation6/sub_dir?,%s/scandir_variation6/sub_dir?): No such file or directory in %s on line %d + +Warning: scandir(%s/scandir_variation6/sub_dir?): failed to open dir: No such file or directory in %sscandir_variation6-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) + +Warning: scandir(%s/scandir_variation6/sub?dir1,%s/scandir_variation6/sub?dir1): No such file or directory in %s on line %d + +Warning: scandir(%s/scandir_variation6/sub?dir1): failed to open dir: No such file or directory in %sscandir_variation6-win32.php on line %d + +Warning: scandir(): (errno %d): %s in %s on line %d +bool(false) +===DONE=== diff --git a/ext/standard/tests/dir/scandir_variation6.phpt b/ext/standard/tests/dir/scandir_variation6.phpt index 5cb595fe75..754c615290 100644 --- a/ext/standard/tests/dir/scandir_variation6.phpt +++ b/ext/standard/tests/dir/scandir_variation6.phpt @@ -1,5 +1,11 @@ --TEST-- Test scandir() function : usage variations - Wildcards in directory path +--SKIPIF-- + --FILE-- --SKIPIF-- --FILE-- --SKIPIF-- --FILE-- temp dir Warning: tempnam() expects parameter 1 to be a valid path, string given in %stempnam_variation7-win32.php on line %d -- File is not created -- -Warning: unlink(): Invalid argument in %stempnam_variation7-win32.php on line %d +Warning: unlink(): Invalid argument in %s on line %d -- Iteration 7 -- Warning: tempnam() expects parameter 1 to be a valid path, array given in %s on line %d -- File is not created -- -Warning: unlink(): Invalid argument in %stempnam_variation7-win32.php on line %d +Warning: unlink(): Invalid argument in %s on line %d -- Iteration 8 -- File name is => %s%et%s File permissions are => 100666 -- 2.50.1