Home
last modified time | relevance | path

Searched refs:scandir (Results 1 – 25 of 29) sorted by relevance

12

/PHP-5.6/ext/standard/tests/dir/
H A Dscandir_variation1.phpt20 echo "*** Testing scandir() : usage variations ***\n";
95 var_dump( scandir($input) );
103 *** Testing scandir() : usage variations ***
109 Warning: scandir(): (errno %d): %s in %s on line %d
116 Warning: scandir(): (errno %d): %s in %s on line %d
123 Warning: scandir(): (errno %d): %s in %s on line %d
130 Warning: scandir(): (errno %d): %s in %s on line %d
137 Warning: scandir(): (errno %d): %s in %s on line %d
144 Warning: scandir(): (errno %d): %s in %s on line %d
151 Warning: scandir(): (errno %d): %s in %s on line %d
[all …]
H A Dscandir_error2.phpt2 Test scandir() function : error conditions - Non-existent directory
20 echo "*** Testing scandir() : error conditions ***\n";
24 echo "\n-- Pass scandir() an absolute path that does not exist --\n";
25 var_dump(scandir($directory));
27 echo "\n-- Pass scandir() a relative path that does not exist --\n";
28 var_dump(scandir('/idonotexist'));
32 *** Testing scandir() : error conditions ***
34 -- Pass scandir() an absolute path that does not exist --
38 Warning: scandir(): (errno %d): %s in %s on line %d
41 -- Pass scandir() a relative path that does not exist --
[all …]
H A Dscandir_error1.phpt2 Test scandir() function : error conditions - Incorrect number of args
11 * Pass incorrect number of arguments to scandir() to test behaviour
14 echo "*** Testing scandir() : error conditions ***\n";
17 echo "\n-- Testing scandir() function with Zero arguments --\n";
18 var_dump( scandir() );
20 //Test scandir with one more than the expected number of arguments
27 var_dump( scandir($dir, $sorting_order, $context, $extra_arg) );
36 *** Testing scandir() : error conditions ***
38 -- Testing scandir() function with Zero arguments --
40 Warning: scandir() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dscandir_variation6.phpt2 Test scandir() function : usage variations - Wildcards in directory path
20 echo "*** Testing scandir() : usage variations ***\n";
33 var_dump( scandir($file_path . "/scandir_var*") );
34 var_dump( scandir($file_path . "/*") );
37 var_dump( scandir($dir_path . "/sub_dir?") );
38 var_dump( scandir($dir_path . "/sub?dir1") );
51 *** Testing scandir() : usage variations ***
57 Warning: scandir(): (errno %d): %s in %s on line %d
62 Warning: scandir(): (errno %d): %s in %s on line %d
69 Warning: scandir(): (errno %d): %s in %s on line %d
[all …]
H A Dscandir_variation3.phpt2 Test scandir() function : usage variations - diff data types as $context arg
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
11 * Pass different data types as $context argument to test how scandir() behaves
14 echo "*** Testing scandir() : usage variations ***\n";
90 // loop through each element of $inputs to check the behavior of scandir()
94 var_dump( scandir($dir, $sorting_order, $input) );
107 *** Testing scandir() : usage variations ***
156 Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
161 Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
221 Warning: scandir() expects parameter 3 to be resource, null given in %s on line %d
[all …]
H A Dscandir_basic.phpt2 Test scandir() function : basic functionality
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
11 * Test basic functionality of scandir()
14 echo "*** Testing scandir() : basic functionality ***\n";
24 echo "\n-- scandir() with mandatory arguments --\n";
25 var_dump(scandir($directory));
27 echo "\n-- scandir() with all arguments --\n";
30 var_dump(scandir($directory, $sorting_order, $context));
41 *** Testing scandir() : basic functionality ***
43 -- scandir() with mandatory arguments --
[all …]
H A Dscandir_variation4.phpt2 Test scandir() function : usage variations - different relative paths
11 * Test scandir() with relative paths as $dir argument
14 echo "*** Testing scandir() : usage variations ***\n";
32 var_dump(scandir('./level_one'));
36 var_dump(scandir('level_one/level_two'));
40 var_dump(scandir('..'));
44 var_dump(scandir('.'));
48 var_dump(scandir('../'));
52 var_dump(scandir('./'));
56 var_dump(scandir('../../level_one'));
[all …]
H A Dscandir_variation5.phpt2 Test scandir() function : usage variations - different directory permissions
20 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
26 * remove the execute permission from the parent dir and test scandir() on child dir
27 * 1. remove write & execute permission from the 1st parent and test scandir()
28 * 2. remove execute permission from 2nd parent and test scandir()
31 echo "*** Testing scandir() : usage variations ***\n";
57 var_dump(scandir($child_dir_path));
64 var_dump(scandir($child_dir_path));
83 *** Testing scandir() : usage variations ***
89 Warning: scandir(): (errno %d): %s in %s on line %d
[all …]
H A Dscandir_variation2.phpt2 Test scandir() function : usage variations - diff data types as $sorting_order arg
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
11 * Pass different data types as $sorting_order argument to test how scandir() behaves
14 echo "*** Testing scandir() : usage variations ***\n";
89 // loop through each element of $inputs to check the behavior of scandir()
93 var_dump( scandir($dir, $input) );
106 *** Testing scandir() : usage variations ***
230 Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
235 Warning: scandir() expects parameter 2 to be long, string given in %s on line %d
240 Warning: scandir() expects parameter 2 to be long, array given in %s on line %d
[all …]
H A Dscandir_variation10.phpt2 Test scandir() function : usage variations - different sorting constants
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
15 * Pass different integers as $sorting_order argument to test how scandir()
19 echo "*** Testing scandir() : usage variations ***\n";
30 var_dump(scandir($dir, SCANDIR_SORT_ASCENDING));
31 var_dump(scandir($dir, SCANDIR_SORT_DESCENDING));
34 $files = scandir($dir, SCANDIR_SORT_NONE);
53 *** Testing scandir() : usage variations ***
H A Dscandir_variation9.phpt2 Test scandir() function : usage variations - different ints as $sorting_order arg
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
11 * Pass different integers as $sorting_order argument to test how scandir()
15 echo "*** Testing scandir() : usage variations ***\n";
29 var_dump( scandir($dir, $sorting_order) );
41 *** Testing scandir() : usage variations ***
H A Dscandir_variation8.phpt2 Test scandir() function : usage variations - different file names
5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
11 * Pass a directory containing files with different types of names to test how scandir()
15 echo "*** Testing scandir() : usage variations ***\n";
59 echo "\n-- Call to scandir() --\n";
60 var_dump($content = scandir($dir_path));
75 *** Testing scandir() : usage variations ***
119 -- Call to scandir() --
H A Dscandir_variation7.phpt2 Test scandir() function : usage variations - different directory permissions
20 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
26 * Create directories with different permissions to test whether scandir() can access them
29 echo "*** Testing scandir() : usage variations ***\n";
67 var_dump(scandir($dir_path));
78 *** Testing scandir() : usage variations ***
/PHP-5.6/tests/security/
H A Dopen_basedir_scandir.phpt9 test_open_basedir_before("scandir");
10 test_open_basedir_error("scandir");
12 var_dump(scandir($initdir."/test/ok/"));
13 var_dump(scandir($initdir."/test/ok"));
14 var_dump(scandir($initdir."/test/ok/../ok"));
16 test_open_basedir_after("scandir");?>
23 *** Testing open_basedir configuration [scandir] ***
34 Warning: scandir(): (errno 1): %s in %s on line %d
41 Warning: scandir(): (errno 1): %s in %s on line %d
48 Warning: scandir(): (errno 1): %s in %s on line %d
[all …]
/PHP-5.6/ext/standard/tests/file/
H A Dbug41693.phpt2 Bug #41693 (scandir() allows empty directory names)
6 var_dump(scandir(''));
11 Warning: scandir(): Directory name cannot be empty in %s on line %d
H A Dbug65701.phpt22 foreach (scandir($file_path) as $file) {
H A Duserdirstream.phpt37 var_dump(scandir('test://example.com/path/to/test'));
/PHP-5.6/ext/pcre/
H A Dupgrade-pcre.php36 foreach (scandir($path) as $file) {
85 $dirorig = scandir('pcrelib/testdata');
94 $dirnew = scandir("$newpcre/testdata");
/PHP-5.6/ext/standard/tests/file/windows_links/
H A Dbug48746_2.phpt35 print_r(scandir("mklink_junction"));
36 print_r(scandir("$fullpath\\mnt\\test\\directory"));
37 print_r(scandir("$fullpath\\mnt\\test\\mklink_junction"));
H A Dbug48746_3.phpt31 print_r(scandir("junction"));
/PHP-5.6/main/
H A Dphp_scandir.h43 #define php_scandir scandir
/PHP-5.6/ext/standard/
H A Dphp_dir.h38 PHP_FUNCTION(scandir);
/PHP-5.6/sapi/phpdbg/
H A D.phpdbginit92 # R scandir
/PHP-5.6/sapi/phpdbg/tests/
H A Drun-tests.php160 foreach (scandir($path) as $child) {
263 foreach (scandir($path) as $file) {
/PHP-5.6/scripts/dev/
H A Dcheck_parameters.php295 foreach (scandir($path) as $file) {

Completed in 34 milliseconds

12