Home
last modified time | relevance | path

Searched refs:dir (Results 251 – 275 of 598) sorted by path

1...<<11121314151617181920>>...24

/PHP-7.2/ext/standard/tests/dir/
H A Dclosedir_variation2.phpt7 * Source code: ext/standard/dir.c
H A Dclosedir_variation3.phpt7 * Source code: ext/standard/dir.c
H A Ddir_basic-win32-mb.phpt2 Test dir() function : basic functionality
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
17 echo "*** Testing dir() : basic functionality ***\n";
31 $d = dir($dir_path);
47 echo "\nTest read after closing the dir:";
62 *** Testing dir() : basic functionality ***
89 Test read after closing the dir:
H A Ddir_basic.phpt2 Test dir() function : basic functionality
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
11 echo "*** Testing dir() : basic functionality ***\n";
25 $d = dir($dir_path);
41 echo "\nTest read after closing the dir:";
56 *** Testing dir() : basic functionality ***
83 Test read after closing the dir:
H A Ddir_bug73971.phpt19 echo "\ntest dir()\n";
20 $d = dir($base);
27 $dir = new DirectoryIterator($base);
28 foreach ($dir as $finfo) {
45 test dir()
H A Ddir_error.phpt2 Test dir() function : error conditions
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
11 echo "*** Testing dir() : error conditions ***\n";
14 echo "\n-- Testing dir() function with zero arguments --";
15 var_dump( dir() );
20 var_dump( dir(getcwd(), "stream", $extra_arg) );
25 *** Testing dir() : error conditions ***
27 -- Testing dir() function with zero arguments --
28 Warning: dir() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Ddir_variation1.phpt2 Test dir() function : usage variations - unexpected value for 'dir' argument
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Passing non string values to 'directory' argument of dir() and see
22 echo "*** Testing dir() : unexpected values for \$directory argument ***\n";
38 $dfp = opendir( dirname(__FILE__) ); // get a dir handle
70 // resource variable(dir and file handle)
82 var_dump( dir($unexpected_value) );
91 *** Testing dir() : unexpected values for $directory argument ***
126 Warning: dir(1): failed to open dir: %s in %s on line %d
[all …]
H A Ddir_variation2-win32-mb.phpt2 Test dir() function : usage variations - unexpected value for 'context' argument
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Passing non resource values to 'context' argument of dir() and see
22 echo "*** Testing dir() : unexpected values for \$context argument ***\n";
102 var_dump( dir($directory, $unexpected_value) );
116 *** Testing dir() : unexpected values for $context argument ***
135 Warning: dir() expects parameter 2 to be resource, float given in %s on line %d
139 Warning: dir() expects parameter 2 to be resource, float given in %s on line %d
175 Warning: dir() expects parameter 2 to be resource, null given in %s on line %d
[all …]
H A Ddir_variation2.phpt2 Test dir() function : usage variations - unexpected value for 'context' argument
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
12 * Passing non resource values to 'context' argument of dir() and see
16 echo "*** Testing dir() : unexpected values for \$context argument ***\n";
96 var_dump( dir($directory, $unexpected_value) );
110 *** Testing dir() : unexpected values for $context argument ***
129 Warning: dir() expects parameter 2 to be resource, float given in %s on line %d
133 Warning: dir() expects parameter 2 to be resource, float given in %s on line %d
169 Warning: dir() expects parameter 2 to be resource, null given in %s on line %d
[all …]
H A Ddir_variation3.phpt2 Test dir() function : usage variations - different directory permissions
23 * Source code: ext/standard/dir.c
28 * to see if dir() function opens the directory successfully.
31 echo "*** Testing dir() : different directory permissions ***";
60 // try to remove the dir if exists & create
64 @rmdir ($dir_path); // try n delete the dir
66 // create the dir now
69 // change the dir permisson to test dir on it
72 // try to get dir handle
73 $d = dir($dir_path);
[all …]
H A Ddir_variation4-win32-mb.phpt2 Test dir() function : usage variations - operate on previously opened directory
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Testing the behavior of dir() function by trying to open a
22 echo "*** Testing dir() : operate on previously opened directory ***\n";
36 $d = dir($dir_path);
40 $e = dir($dir_path);
61 *** Testing dir() : operate on previously opened directory ***
H A Ddir_variation4.phpt2 Test dir() function : usage variations - operate on previously opened directory
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
12 * Testing the behavior of dir() function by trying to open a
16 echo "*** Testing dir() : operate on previously opened directory ***\n";
30 $d = dir($dir_path);
34 $e = dir($dir_path);
55 *** Testing dir() : operate on previously opened directory ***
H A Ddir_variation5.phpt2 Test dir() function : usage variations - open a file instead of directory
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Passing a file as argument to dir() function instead of a directory
22 echo "*** Testing dir() : open a file instead of a directory ***\n";
25 $d = dir(__FILE__);
31 *** Testing dir() : open a file instead of a directory ***
33 Warning: dir(%s): failed to open dir: %s in %s on line %d
H A Ddir_variation6.phpt2 Test dir() function : usage variations - non-existent directory
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
21 echo "*** Testing dir() : open a non-existent directory ***\n";
29 $d = dir($dir_path);
30 $d->close(); //close the dir
37 var_dump( dir($dir_path) );
42 $d = dir($non_existent_dir);
48 *** Testing dir() : open a non-existent directory ***
51 Warning: dir(%s): failed to open dir: %s in %s on line %d
[all …]
H A Ddir_variation7.phpt23 * Source code: ext/standard/dir.c
27 * remove the execute permission from the parent dir and test dir() on child dir
32 echo "*** Testing dir() : remove execute permission from the parent dir ***\n";
37 |-> child_dir ( child dir)
56 $d = dir($child_dir_path); // try to open, expected failure
59 // remove the execute permisson from parent dir, allowing all permission for sub dir
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
63 $d = dir($child_dir_path); // try to open, expected failure
85 *** Testing dir() : remove execute permission from the parent dir ***
88 Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in %s on line %d
[all …]
H A Ddir_variation8.phpt12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
35 var_dump( dir($file_path."/dir_var*") );
36 var_dump( dir($file_path."/*") );
39 var_dump( dir($dir_path."/sub_dir?") );
40 var_dump( dir($dir_path."/sub?dir1") );
45 *** Testing dir() : checking with wildcard characters ***
48 Warning: dir(%s/dir_var*): failed to open dir: %s in %s on line %d
51 Warning: dir(%s/*): failed to open dir: %s in %s on line %d
55 Warning: dir(%s/dir_variation81/sub_dir?): failed to open dir: %s in %s on line %d
[all …]
H A Ddir_variation9.phpt2 Test dir() function : usage variations - relative valid and invalid paths
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
45 var_dump( dir("$dir_path1/sub_dir11/sub_dir111/..") );
46 var_dump( dir("$dir_path2/sub_dir21/../../dir_variation91") );
52 var_dump( dir("$dir_path1/sub_dir12/sub_dir111/..") );
53 var_dump( dir("$dir_path2/sub_dir21/../dir_variation91") );
106 Warning: dir(%s/dir_variation91/sub_dir12/sub_dir111/..): failed to open dir: %s in %s on line %d
109 Warning: dir(%s/dir_variation92/sub_dir21/../dir_variation91): failed to open dir: %s in %s on line…
112 Warning: dir(%s/dir_variation92/sub_dir21/../../dir_variation91/sub_dir12/..): failed to open dir: …
[all …]
H A Dgetcwd_basic-win32-mb.phpt13 * Source code: ext/standard/dir.c
H A Dgetcwd_basic.phpt7 * Source code: ext/standard/dir.c
H A Dgetcwd_error.phpt7 * Source code: ext/standard/dir.c
H A Dopendir_basic-win32-mb.phpt13 * Source code: ext/standard/dir.c
H A Dopendir_basic.phpt7 * Source code: ext/standard/dir.c
H A Dopendir_error1-win32-mb.phpt13 * Source code: ext/standard/dir.c
H A Dopendir_error1.phpt7 * Source code: ext/standard/dir.c
H A Dopendir_error2.phpt13 * Source code: ext/standard/dir.c
36 Warning: opendir(%s/idonotexist): failed to open dir: %s in %s on line %d
41 Warning: opendir(idonotexist): failed to open dir: %s in %s on line %d

Completed in 95 milliseconds

1...<<11121314151617181920>>...24