Home
last modified time | relevance | path

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

12

/PHP-7.4/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-7.4/ext/standard/tests/dir/
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_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_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_variation3-win32-mb.phpt2 Test scandir() function : usage variations - diff data types as $context arg
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
17 * Pass different data types as $context argument to test how scandir() behaves
20 echo "*** Testing scandir() : usage variations ***\n";
96 // loop through each element of $inputs to check the behavior of scandir()
100 var_dump( scandir($dir, $sorting_order, $input) );
113 *** Testing scandir() : usage variations ***
117 Warning: scandir() expects parameter 3 to be resource, int given in %s on line %d
122 Warning: scandir() expects parameter 3 to be resource, int given in %s on line %d
127 Warning: scandir() expects parameter 3 to be resource, int given in %s on line %d
[all …]
H A Dscandir_basic-win32-mb.phpt2 Test scandir() function : basic functionality
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
17 * Test basic functionality of scandir()
20 echo "*** Testing scandir() : basic functionality ***\n";
30 echo "\n-- scandir() with mandatory arguments --\n";
31 var_dump(scandir($directory));
33 echo "\n-- scandir() with all arguments --\n";
36 var_dump(scandir($directory, $sorting_order, $context));
47 *** Testing scandir() : basic functionality ***
49 -- scandir() with mandatory arguments --
[all …]
H A Dscandir_variation5.phpt2 Test scandir() function : usage variations - different directory permissions
12 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
18 * remove the execute permission from the parent dir and test scandir() on child dir
19 * 1. remove write & execute permission from the 1st parent and test scandir()
20 * 2. remove execute permission from 2nd parent and test scandir()
23 echo "*** Testing scandir() : usage variations ***\n";
49 var_dump(scandir($child_dir_path));
56 var_dump(scandir($child_dir_path));
75 *** Testing scandir() : usage variations ***
81 Warning: scandir(): (errno %d): %s in %s on line %d
[all …]
H A Dscandir_variation4-win32-mb.phpt2 Test scandir() function : usage variations - different relative paths
17 * Test scandir() with relative paths as $dir argument
20 echo "*** Testing scandir() : usage variations ***\n";
39 var_dump(scandir('./私はガラスを食べられますlevel_one'));
43 var_dump(scandir('私はガラスを食べられますlevel_one/私はガラスを食べられますlevel_two'));
47 var_dump(scandir('..'));
51 var_dump(scandir('.'));
55 var_dump(scandir('../'));
59 var_dump(scandir('./'));
63 var_dump(scandir('../../私はガラスを食べられますlevel_one'));
[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";
33 var_dump(scandir('./level_one'));
37 var_dump(scandir('level_one/level_two'));
41 var_dump(scandir('..'));
45 var_dump(scandir('.'));
49 var_dump(scandir('../'));
53 var_dump(scandir('./'));
57 var_dump(scandir('../../level_one'));
[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_variation10-win32-mb.phpt2 Test scandir() function : usage variations - different sorting constants
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
21 * Pass different integers as $sorting_order argument to test how scandir()
25 echo "*** Testing scandir() : usage variations ***\n";
36 var_dump(scandir($dir, SCANDIR_SORT_ASCENDING));
37 var_dump(scandir($dir, SCANDIR_SORT_DESCENDING));
40 $files = scandir($dir, SCANDIR_SORT_NONE);
59 *** 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_variation9-win32-mb.phpt2 Test scandir() function : usage variations - different ints as $sorting_order arg
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
17 * Pass different integers as $sorting_order argument to test how scandir()
21 echo "*** Testing scandir() : usage variations ***\n";
35 var_dump( scandir($dir, $sorting_order) );
47 *** Testing scandir() : usage variations ***
H A Dscandir_variation8-win32-mb.phpt2 Test scandir() function : usage variations - different file names
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
17 * Pass a directory containing files with different types of names to test how scandir()
21 echo "*** Testing scandir() : usage variations ***\n";
65 echo "\n-- Call to scandir() --\n";
66 var_dump($content = scandir($dir_path));
81 *** Testing scandir() : usage variations ***
125 -- Call to scandir() --
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
12 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
18 * Create directories with different permissions to test whether scandir() can access them
21 echo "*** Testing scandir() : usage variations ***\n";
59 var_dump(scandir($dir_path));
70 *** Testing scandir() : usage variations ***
H A Dbug78220.phpt11 if ($dir && scandir($dir) === FALSE) {
/PHP-7.4/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.phpt24 foreach (scandir($file_path) as $file) {
H A Duserdirstream.phpt37 var_dump(scandir('test://example.com/path/to/test'));
/PHP-7.4/ext/standard/tests/ini_info/
H A Dphp_ini_scanned_files.phpt7 $scandir = __DIR__.DIRECTORY_SEPARATOR.'scandir';
14 putenv('PHP_INI_SCAN_DIR='.$scandir);
/PHP-7.4/ext/standard/tests/file/windows_links/
H A Dbug48746_2.phpt29 print_r(scandir("mklink_junction"));
30 print_r(scandir("$fullpath\\mnt\\test\\directory"));
31 print_r(scandir("$fullpath\\mnt\\test\\mklink_junction"));
H A Dbug73962.phpt27 var_dump(scandir("mklink_symlink"));
28 var_dump(scandir("$fullpath\\mnt\\test\\новая папка"));
29 var_dump(scandir("$fullpath\\mnt\\test\\mklink_symlink"));
/PHP-7.4/main/
H A Dphp_scandir.h37 #define php_scandir scandir
/PHP-7.4/ext/standard/
H A Dphp_dir.h36 PHP_FUNCTION(scandir);

Completed in 26 milliseconds

12