Home
last modified time | relevance | path

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

123456

/PHP-8.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 directory: %s in %s on line %d
47 Warning: opendir(../): Failed to open directory: %s in %s on line %d
52 Warning: opendir(/): Failed to open directory: %s in %s on line %d
[all …]
/PHP-8.3/ext/standard/tests/dir/
H A Dopendir_variation6-win32.phpt2 Test opendir() function : usage variations - Different wildcards
12 * Pass paths containing wildcards to test if opendir() recognises them
15 echo "*** Testing opendir() : usage variations ***\n";
27 var_dump( opendir($file_path . "/opendir_var*") );
28 var_dump( opendir($file_path . "/*") );
31 var_dump( opendir($dir_path . "/sub_dir?") );
32 var_dump( opendir($dir_path . "/sub?dir1") );
44 *** Testing opendir() : usage variations ***
48 Warning: opendir(%s/opendir_var*): %s in %s on line %d
53 Warning: opendir(%s/*): %s in %s on line %d
[all …]
H A Dopendir_variation6.phpt2 Test opendir() function : usage variations - Different wildcards
12 * Pass paths containing wildcards to test if opendir() recognises them
15 echo "*** Testing opendir() : usage variations ***\n";
27 var_dump( opendir($file_path . "/opendir_var*") );
28 var_dump( opendir($file_path . "/*") );
31 var_dump( opendir($dir_path . "/sub_dir?") );
32 var_dump( opendir($dir_path . "/sub?dir1") );
44 *** Testing opendir() : usage variations ***
48 Warning: opendir(%s/opendir_var*): Failed to open directory: %s in %s on line %d
51 Warning: opendir(%s/*): Failed to open directory: %s in %s on line %d
[all …]
H A Dbug80960.phpt2 Fix #80960 (opendir() warning wrong info when failed on Windows)
9 opendir("notexist*");
10 opendir("notexist?");
11 opendir(str_pad("longname", PHP_MAXPATHLEN - strlen(getcwd()), "_"));
14 Warning: opendir(notexist*): %s (code: 123) in %s on line %d
16 Warning: opendir(notexist*): Failed to open directory: No such file or directory in %s on line %d
18 Warning: opendir(notexist?): %s (code: 123) in %s on line %d
20 Warning: opendir(notexist?): Failed to open directory: No such file or directory in %s on line %d
22 Warning: opendir(longname%r_+%r): %s (code: 111) in %s on line %d
24 Warning: opendir(longname%r_+%r): Failed to open directory: Filename too long in %s on line %d
H A Dopendir_basic.phpt2 Test opendir() function : basic functionality
6 * Test basic functionality of opendir() with absolute and relative paths as $path argument
9 echo "*** Testing opendir() : basic functionality ***\n";
24 echo "\n-- Testing opendir() with absolute path: --\n";
25 var_dump($dh1 = opendir($level_one_dir_path));
28 echo "\n-- Testing opendir() with relative paths: --\n";
30 var_dump($dh2 = opendir($level_two_dir_name));
46 *** Testing opendir() : basic functionality ***
48 -- Testing opendir() with absolute path: --
51 -- Testing opendir() with relative paths: --
H A Dopendir_basic-win32-mb.phpt2 Test opendir() function : basic functionality
12 * Test basic functionality of opendir() with absolute and relative paths as $path argument
15 echo "*** Testing opendir() : basic functionality ***\n";
30 echo "\n-- Testing opendir() with absolute path: --\n";
31 var_dump($dh1 = opendir($level_one_dir_path));
34 echo "\n-- Testing opendir() with relative paths: --\n";
36 var_dump($dh2 = opendir($level_two_dir_name));
52 *** Testing opendir() : basic functionality ***
54 -- Testing opendir() with absolute path: --
57 -- Testing opendir() with relative paths: --
H A Dopendir_error2.phpt2 Test opendir() function : error conditions - Non-existent directory
12 * Pass a non-existent directory as $path argument to opendir() to test behaviour
15 echo "*** Testing opendir() : error conditions ***\n";
19 var_dump(opendir($path));
23 var_dump(opendir('idonotexist'));
26 *** Testing opendir() : error conditions ***
30 Warning: opendir(%s/idonotexist): Failed to open directory: %s in %s on line %d
35 Warning: opendir(idonotexist): Failed to open directory: %s in %s on line %d
H A Dopendir_variation4.phpt2 Test opendir() function : usage variations - different relative paths
6 * Test opendir() with different relative paths as $path argument
9 echo "*** Testing opendir() : usage variation ***\n";
26 var_dump($dh = opendir("./$level_one_dir_name"));
31 var_dump($dh = opendir("$level_one_dir_name/$level_two_dir_name"));
35 var_dump($dh = opendir('..'));
40 var_dump($dh = opendir('.'));
44 var_dump($dh = opendir('../'));
49 var_dump($dh = opendir('./'));
54 var_dump($dh = opendir("../../$level_one_dir_name"));
[all …]
H A Dopendir_variation4-win32-mb.phpt2 Test opendir() function : usage variations - different relative paths
12 * Test opendir() with different relative paths as $path argument
15 echo "*** Testing opendir() : usage variation ***\n";
32 var_dump($dh = opendir("./$level_one_dir_name"));
37 var_dump($dh = opendir("$level_one_dir_name/$level_two_dir_name"));
41 var_dump($dh = opendir('..'));
46 var_dump($dh = opendir('.'));
50 var_dump($dh = opendir('../'));
55 var_dump($dh = opendir('./'));
60 var_dump($dh = opendir("../../$level_one_dir_name"));
[all …]
H A Dopendir_variation3.phpt2 Test opendir() function : usage variations - open a directory twice
6 * Call opendir() twice with the same directory as $path argument
9 echo "*** Testing opendir() : usage variation ***\n";
15 var_dump($dh1 = opendir($path));
18 var_dump($dh2 = opendir($path));
35 *** Testing opendir() : usage variation ***
H A Dopendir_variation3-win32-mb.phpt2 Test opendir() function : usage variations - open a directory twice
12 * Call opendir() twice with the same directory as $path argument
15 echo "*** Testing opendir() : usage variation ***\n";
21 var_dump($dh1 = opendir($path));
24 var_dump($dh2 = opendir($path));
41 *** Testing opendir() : usage variation ***
H A Dopendir_variation5.phpt2 Test opendir() function : usage variations - directories with restricted permissions
13 * remove the execute permission from the parent dir and test opendir() on child dir
14 * 1) remove write & execute permission from the 1st parent and test opendir()
15 * 2) remove execute permission from 2nd parent and test opendir()
18 echo "*** Testing opendir() : usage variations ***\n";
43 $dir_handle1 = opendir($child_dir_path);
51 $dir_handle2 = opendir($child_dir_path); // try to open, expected failure
77 *** Testing opendir() : usage variations ***
81 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): Failed to open directory: %s in %s on li…
86 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): Failed to open directory: %s in %s on li…
H A Dopendir_variation7.phpt2 Test opendir() function : usage variations - different directory permissions
13 * Open a directory using opendir() with different directory permissions
16 echo "*** Testing opendir() : usage variations ***\n";
57 var_dump($dh = opendir($dir_path));
72 *** Testing opendir() : usage variations ***
/PHP-8.3/ext/standard/tests/streams/
H A Dbug49936_win32.phpt15 var_dump(opendir($dir));
16 var_dump(opendir($dir));
20 Warning: opendir(): connect() failed: %s in %s on line %d
22 Warning: opendir(ftp://...@localhost/): Failed to open directory: operation failed in %s on line %d
25 Warning: opendir(): connect() failed: %s in %s on line %d
27 Warning: opendir(ftp://...@localhost/): Failed to open directory: operation failed in %s on line %d
H A Dopendir-001.phpt2 opendir() with 'ftp://' stream.
15 var_dump(opendir($path));
18 Warning: opendir(ftp://localhost:%d/bogusdir): Failed to open directory: FTP server reports 250 /bo…
H A Dopendir-003.phpt2 opendir() with 'ftps://' stream.
20 var_dump(opendir($path, $context));
23 Warning: opendir(ftps://127.0.0.1:%d/bogusdir): Failed to open directory: FTP server reports 250 /b…
H A Dglob-wrapper.phpt14 $dir = opendir($spec);
28 Warning: opendir(): open_basedir restriction in effect. File(%s) is not within the allowed path(s):…
30 Warning: opendir(%s): Failed to open directory: Operation not permitted in %s%eglob-wrapper.php on …
H A Dopendir-002.phpt2 opendir() with 'ftp://' stream.
15 $ds=opendir($path);
H A Dbug72771.phpt17 $ds=opendir($path, $context);
21 Warning: opendir(ftps://127.0.0.1:%d/): Failed to open directory: Server doesn't support FTPS. in %…
/PHP-8.3/ext/phar/tests/
H A Dopendir_edgecases.phpt2 Phar: test edge cases of opendir() function interception
16 opendir(array());
24 $a = opendir('opendir_edgecases');
39 $a = opendir(".", $context);
48 opendir("oops");
58 opendir(): Argument #1 ($directory) must be of type string, array given
63 Warning: opendir(phar://%sopendir_edgecases.phar.php/oops): Failed to open directory: %s in phar://…
H A Dopendir.phpt2 Phar: test opendir() interception
13 $a = opendir("dir");
30 opendir('phar://');
31 opendir('phar://hi.phar');
38 Warning: opendir(phar://): Failed to open directory: phar error: no directory in "phar://", must ha…
41 Warning: opendir(phar://hi.phar): Failed to open directory: phar error: invalid url or non-existent…
H A D027.phpt2 Phar: phar:// opendir
25 $dir = opendir($phar . $base);
43 $a = opendir($pname);
53 echo "opendir edge cases\n";
54 var_dump(opendir("phar://"));
55 var_dump(opendir("phar://foo.phar/hi"));
84 opendir edge cases
86 Warning: opendir(phar://): Failed to open directory: phar error: no directory in "phar://", must ha…
90 Warning: opendir(phar://foo.phar/hi): Failed to open directory: phar error: invalid url or non-exis…
H A D017.phpt2 Phar: opendir test - no dir specified at all
22 $dir = opendir('phar://hio');
30 Warning: opendir(phar://hio): Failed to open directory: phar error: no directory in "phar://hio", m…
H A D018.phpt2 Phar: opendir test, root directory
21 $dir = opendir('phar://hio/');
/PHP-8.3/ext/zlib/tests/
H A Dzlib_scheme_dir_basic.phpt11 var_dump(opendir($srcFile));
18 Warning: opendir(compress.zlib://%s/dir.gz): Failed to open directory: not implemented in %s on lin…

Completed in 24 milliseconds

123456