Home
last modified time | relevance | path

Searched refs:opendir (Results 1 – 25 of 139) sorted by relevance

123456

/PHP-5.3/ext/standard/tests/dir/
H A Dopendir_error1.phpt2 Test opendir() function : error conditions - Incorrect number of args
5 /* Prototype : mixed opendir(string $path[, resource $context])
11 * Pass incorrect number of arguments to opendir() to test behaviour
14 echo "*** Testing opendir() : error conditions ***\n";
17 echo "\n-- Testing opendir() function with Zero arguments --\n";
18 var_dump( opendir() );
20 //Test opendir with one more than the expected number of arguments
27 var_dump( opendir($path, $context, $extra_arg) );
36 *** Testing opendir() : error conditions ***
38 -- Testing opendir() function with Zero arguments --
[all …]
H A Dopendir_variation6-win32.phpt2 Test opendir() function : usage variations - Different wildcards
11 /* Prototype : mixed opendir(string $path[, resource $context])
17 * Pass paths containing wildcards to test if opendir() recognises them
20 echo "*** Testing opendir() : usage variations ***\n";
32 var_dump( opendir($file_path . "/opendir_var*") );
33 var_dump( opendir($file_path . "/*") );
36 var_dump( opendir($dir_path . "/sub_dir?") );
37 var_dump( opendir($dir_path . "/sub?dir1") );
50 *** Testing opendir() : usage variations ***
59 Warning: opendir(%s/*,%s/*): %s in %s on line %d
[all …]
H A Dopendir_variation2.phpt2 Test opendir() function : usage variations - different data types as $context arg
5 /* Prototype : mixed opendir(string $path[, resource $context])
11 * Pass different data types as $context argument to opendir() to test behaviour
14 echo "*** Testing opendir() : usage variation ***\n";
93 // loop through each element of $inputs to check the behavior of opendir()
97 var_dump($dh = opendir($path, $input) );#
113 *** Testing opendir() : usage variation ***
162 Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
167 Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
227 Warning: opendir() expects parameter 2 to be resource, null given in %s on line %d
[all …]
H A Dopendir_variation6.phpt2 Test opendir() function : usage variations - Different wildcards
11 /* Prototype : mixed opendir(string $path[, resource $context])
17 * Pass paths containing wildcards to test if opendir() recognises them
20 echo "*** Testing opendir() : usage variations ***\n";
32 var_dump( opendir($file_path . "/opendir_var*") );
33 var_dump( opendir($file_path . "/*") );
36 var_dump( opendir($dir_path . "/sub_dir?") );
37 var_dump( opendir($dir_path . "/sub?dir1") );
50 *** Testing opendir() : usage variations ***
54 Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d
[all …]
H A Dopendir_basic.phpt2 Test opendir() function : basic functionality
5 /* Prototype : mixed opendir(string $path[, resource $context])
11 * Test basic functionality of opendir() with absolute and relative paths as $path argument
14 echo "*** Testing opendir() : basic functionality ***\n";
28 echo "\n-- Testing opendir() with absolute path: --\n";
29 var_dump($dh1 = opendir($level_one_dir_path));
32 echo "\n-- Testing opendir() with relative paths: --\n";
34 var_dump($dh2 = opendir($level_two_dir_name));
50 *** Testing opendir() : basic functionality ***
52 -- Testing opendir() with absolute path: --
[all …]
H A Dopendir_variation1.phpt2 Test opendir() function : usage variations - different data types as $path arg
11 /* Prototype : mixed opendir(string $path[, resource $context])
21 echo "*** Testing opendir() : usage variations ***\n";
104 var_dump( $dh = opendir($input) );
120 *** Testing opendir() : usage variations ***
124 Warning: opendir(0): failed to open dir: %s in %s on line %d
129 Warning: opendir(1): failed to open dir: %s in %s on line %d
144 Warning: opendir(10.5): failed to open dir: %s in %s on line %d
164 Warning: opendir(0.5): failed to open dir: %s in %s on line %d
175 Warning: opendir(1): failed to open dir: %s in %s on line %d
[all …]
H A Dopendir_error2.phpt2 Test opendir() function : error conditions - Non-existent directory
11 /* Prototype : mixed opendir(string $path[, resource $context])
17 * Pass a non-existent directory as $path argument to opendir() to test behaviour
20 echo "*** Testing opendir() : error conditions ***\n";
24 var_dump(opendir($path));
28 var_dump(opendir('idonotexist'));
32 *** Testing opendir() : error conditions ***
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
H A Dopendir_variation4.phpt2 Test opendir() function : usage variations - different relative paths
5 /* Prototype : mixed opendir(string $path[, resource $context])
11 * Test opendir() with different relative paths as $path argument
14 echo "*** Testing opendir() : usage variation ***\n";
30 var_dump($dh = opendir("./$level_one_dir_name"));
39 var_dump($dh = opendir('..'));
44 var_dump($dh = opendir('.'));
48 var_dump($dh = opendir('../'));
53 var_dump($dh = opendir('./'));
58 var_dump($dh = opendir("../../$level_one_dir_name"));
[all …]
H A Dopendir_variation3.phpt2 Test opendir() function : usage variations - open a directory twice
5 /* Prototype : mixed opendir(string $path[, resource $context])
11 * Call opendir() twice with the same directory as $path argument
14 echo "*** Testing opendir() : usage variation ***\n";
20 var_dump($dh1 = opendir($path));
23 var_dump($dh2 = opendir($path));
41 *** Testing opendir() : usage variation ***
H A Dopendir_variation5.phpt2 Test opendir() function : usage variations - directories with restricted permissions
20 /* Prototype : mixed opendir(string $path[, resource $context])
26 * remove the execute permission from the parent dir and test opendir() on child dir
27 * 1) remove write & execute permission from the 1st parent and test opendir()
28 * 2) remove execute permission from 2nd parent and test opendir()
31 echo "*** Testing opendir() : usage variations ***\n";
56 $dir_handle1 = opendir($child_dir_path);
64 $dir_handle2 = opendir($child_dir_path); // try to open, expected failure
92 *** Testing opendir() : usage variations ***
96 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
[all …]
H A Dopendir_variation7.phpt2 Test opendir() function : usage variations - different directory permissions
20 /* Prototype : mixed opendir(string $path[, resource $context])
26 * Open a directory using opendir() with different directory permissions
29 echo "*** Testing opendir() : usage variations ***\n";
70 var_dump($dh = opendir($dir_path));
86 *** Testing opendir() : usage variations ***
/PHP-5.3/tests/security/
H A Dopen_basedir_opendir.phpt9 test_open_basedir_before("opendir");
10 test_open_basedir_error("opendir");
12 var_dump(opendir($initdir."/test/ok/"));
13 var_dump(opendir($initdir."/test/ok"));
14 var_dump(opendir($initdir."/test/ok/../ok"));
16 test_open_basedir_after("opendir");?>
23 *** Testing open_basedir configuration [opendir] ***
42 Warning: opendir(..): failed to open dir: %s in %s on line %d
47 Warning: opendir(../): failed to open dir: %s in %s on line %d
52 Warning: opendir(/): failed to open dir: %s in %s on line %d
[all …]
/PHP-5.3/ext/standard/tests/streams/
H A Dbug49936.phpt13 var_dump(opendir($dir));
14 var_dump(opendir($dir));
18 Warning: opendir(): connect() failed: Connection refused in %s on line %d
20 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
23 Warning: opendir(): connect() failed: Connection refused in %s on line %d
25 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
H A Dbug49936_win32.phpt15 var_dump(opendir($dir));
16 var_dump(opendir($dir));
20 Warning: opendir(): connect() failed: %s
23 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
26 Warning: opendir(): connect() failed: %s
29 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
/PHP-5.3/ext/phar/tests/
H A Dopendir_edgecases.phpt2 Phar: test edge cases of opendir() function interception
15 opendir(array());
20 $a = opendir('poo');
35 $a = opendir(".", $context);
44 opendir("oops");
55 Warning: opendir() expects parameter 1 to be %string, array given in %sopendir_edgecases.php on lin…
60 Warning: opendir(phar://%sopendir_edgecases.phar.php/oops): failed to open dir: %s in phar://%sopen…
H A Dopendir.phpt2 Phar: test opendir() interception
14 $a = opendir("dir");
31 opendir('phar://');
32 opendir('phar://hi.phar');
40 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at …
43 Warning: opendir(phar://hi.phar): failed to open dir: phar error: invalid url or non-existent phar …
H A D027.phpt2 Phar: phar:// opendir
28 $dir = opendir($phar . $base);
46 $a = opendir($pname);
56 echo "opendir edge cases\n";
57 var_dump(opendir("phar://"));
58 var_dump(opendir("phar://foo.phar/hi"));
88 opendir edge cases
90 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at …
94 Warning: opendir(phar://foo.phar/hi): failed to open dir: phar error: invalid url or non-existent p…
H A D027U.phpt2 Phar: phar:// opendir
28 $dir = opendir($phar . $base);
46 $a = opendir($pname);
56 echo "opendir edge cases\n";
57 var_dump(opendir("phar://"));
58 var_dump(opendir("phar://foo.phar/hi"));
88 opendir edge cases
90 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at …
94 Warning: opendir(phar://foo.phar/hi): failed to open dir: phar error: invalid url or non-existent p…
H A D017.phpt2 Phar: opendir test - no dir specified at all
25 $dir = opendir('phar://hio');
33 Warning: opendir(phar://hio): failed to open dir: phar error: no directory in "phar://hio", must ha…
H A D017U.phpt2 Phar: opendir test - no dir specified at all
25 $dir = opendir('phar://hio');
33 Warning: opendir(phar://hio): failed to open dir: phar error: no directory in "phar://hio", must ha…
/PHP-5.3/ext/imap/tests/
H A Dimap_fetchbody_variation5.phpt26 echo "\n-- Directory Resource opened with opendir() --\n";
27 var_dump($dir_handle = opendir(dirname(__FILE__)));
41 -- Directory Resource opened with opendir() --
H A Dimap_fetchheader_variation4.phpt25 echo "\n-- Directory Resource opened with opendir() --\n";
26 var_dump($dir_handle = opendir(dirname(__FILE__)));
40 -- Directory Resource opened with opendir() --
H A Dimap_close_variation3.phpt25 echo "\n-- Directory Resource opened with opendir() --\n";
26 var_dump($dir_handle = opendir(dirname(__FILE__)));
41 -- Directory Resource opened with opendir() --
H A Dimap_fetch_overview_variation4.phpt26 echo "\n-- Directory Resource opened with opendir() --\n";
27 var_dump($dir_handle = opendir(dirname(__FILE__)));
41 -- Directory Resource opened with opendir() --
/PHP-5.3/ext/zlib/tests/
H A Dzlib_scheme_dir_basic.phpt15 var_dump(opendir($srcFile));
23 Warning: opendir(compress.zlib://%s/dir.gz): failed to open dir: not implemented in %s on line %d

Completed in 45 milliseconds

123456