Home
last modified time | relevance | path

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

12

/PHP-8.0/ext/standard/tests/dir/
H A Dscandir_error2.phpt2 Test scandir() function : error conditions - Non-existent directory
15 echo "*** Testing scandir() : error conditions ***\n";
19 echo "\n-- Pass scandir() an absolute path that does not exist --\n";
20 var_dump(scandir($directory));
22 echo "\n-- Pass scandir() a relative path that does not exist --\n";
23 var_dump(scandir('/idonotexist'));
26 *** Testing scandir() : error conditions ***
28 -- Pass scandir() an absolute path that does not exist --
32 Warning: scandir(): (errno %d): %s in %s on line %d
35 -- Pass scandir() a relative path that does not exist --
[all …]
H A Dscandir_variation6.phpt2 Test scandir() function : usage variations - Wildcards in directory path
15 echo "*** Testing scandir() : usage variations ***\n";
28 var_dump( scandir($file_path . "/scandir_var*") );
29 var_dump( scandir($file_path . "/*") );
32 var_dump( scandir($dir_path . "/sub_dir?") );
33 var_dump( scandir($dir_path . "/sub?dir1") );
45 *** Testing scandir() : usage variations ***
51 Warning: scandir(): (errno %d): %s in %s on line %d
56 Warning: scandir(): (errno %d): %s in %s on line %d
63 Warning: scandir(): (errno %d): %s in %s on line %d
[all …]
H A Dscandir_basic.phpt2 Test scandir() function : basic functionality
6 * Test basic functionality of scandir()
9 echo "*** Testing scandir() : basic functionality ***\n";
19 echo "\n-- scandir() with mandatory arguments --\n";
20 var_dump(scandir($directory));
22 echo "\n-- scandir() with all arguments --\n";
25 var_dump(scandir($directory, $sorting_order, $context));
35 *** Testing scandir() : basic functionality ***
37 -- scandir() with mandatory arguments --
51 -- scandir() with all arguments --
H A Dscandir_basic-win32-mb.phpt2 Test scandir() function : basic functionality
12 * Test basic functionality of scandir()
15 echo "*** Testing scandir() : basic functionality ***\n";
25 echo "\n-- scandir() with mandatory arguments --\n";
26 var_dump(scandir($directory));
28 echo "\n-- scandir() with all arguments --\n";
31 var_dump(scandir($directory, $sorting_order, $context));
41 *** Testing scandir() : basic functionality ***
43 -- scandir() with mandatory arguments --
57 -- scandir() with all arguments --
H A Dscandir_variation5.phpt2 Test scandir() function : usage variations - different directory permissions
13 * remove the execute permission from the parent dir and test scandir() on child dir
14 * 1. remove write & execute permission from the 1st parent and test scandir()
15 * 2. remove execute permission from 2nd parent and test scandir()
18 echo "*** Testing scandir() : usage variations ***\n";
44 var_dump(scandir($child_dir_path));
51 var_dump(scandir($child_dir_path));
69 *** Testing scandir() : usage variations ***
73 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): Failed to open directory: %s in %s on li…
75 Warning: scandir(): (errno %d): %s in %s on line %d
[all …]
H A Dscandir_variation4.phpt2 Test scandir() function : usage variations - different relative paths
6 * Test scandir() with relative paths as $dir argument
9 echo "*** Testing scandir() : usage variations ***\n";
28 var_dump(scandir('./level_one'));
32 var_dump(scandir('level_one/level_two'));
36 var_dump(scandir('..'));
40 var_dump(scandir('.'));
44 var_dump(scandir('../'));
48 var_dump(scandir('./'));
52 var_dump(scandir('../../level_one'));
[all …]
H A Dscandir_variation4-win32-mb.phpt2 Test scandir() function : usage variations - different relative paths
12 * Test scandir() with relative paths as $dir argument
15 echo "*** Testing scandir() : usage variations ***\n";
34 var_dump(scandir('./私はガラスを食べられますlevel_one'));
38 var_dump(scandir('私はガラスを食べられますlevel_one/私はガラスを食べられますlevel_two'));
42 var_dump(scandir('..'));
46 var_dump(scandir('.'));
50 var_dump(scandir('../'));
54 var_dump(scandir('./'));
58 var_dump(scandir('../../私はガラスを食べられますlevel_one'));
[all …]
H A Dscandir_variation10.phpt2 Test scandir() function : usage variations - different sorting constants
10 * Pass different integers as $sorting_order argument to test how scandir()
14 echo "*** Testing scandir() : usage variations ***\n";
25 var_dump(scandir($dir, SCANDIR_SORT_ASCENDING));
26 var_dump(scandir($dir, SCANDIR_SORT_DESCENDING));
29 $files = scandir($dir, SCANDIR_SORT_NONE);
47 *** Testing scandir() : usage variations ***
H A Dscandir_variation10-win32-mb.phpt2 Test scandir() function : usage variations - different sorting constants
16 * Pass different integers as $sorting_order argument to test how scandir()
20 echo "*** Testing scandir() : usage variations ***\n";
31 var_dump(scandir($dir, SCANDIR_SORT_ASCENDING));
32 var_dump(scandir($dir, SCANDIR_SORT_DESCENDING));
35 $files = scandir($dir, SCANDIR_SORT_NONE);
53 *** Testing scandir() : usage variations ***
H A Dbug41693.phpt2 Bug #41693 (scandir() allows empty directory names)
7 var_dump(scandir(''));
14 scandir(): Argument #1 ($directory) cannot be empty
H A Dscandir_variation9.phpt2 Test scandir() function : usage variations - different ints as $sorting_order arg
6 * Pass different integers as $sorting_order argument to test how scandir()
10 echo "*** Testing scandir() : usage variations ***\n";
24 var_dump( scandir($dir, $sorting_order) );
35 *** Testing scandir() : usage variations ***
H A Dscandir_variation9-win32-mb.phpt2 Test scandir() function : usage variations - different ints as $sorting_order arg
12 * Pass different integers as $sorting_order argument to test how scandir()
16 echo "*** Testing scandir() : usage variations ***\n";
30 var_dump( scandir($dir, $sorting_order) );
41 *** Testing scandir() : usage variations ***
H A Dscandir_variation8.phpt2 Test scandir() function : usage variations - different file names
6 * Pass a directory containing files with different types of names to test how scandir()
10 echo "*** Testing scandir() : usage variations ***\n";
54 echo "\n-- Call to scandir() --\n";
55 var_dump($content = scandir($dir_path));
69 *** Testing scandir() : usage variations ***
113 -- Call to scandir() --
H A Dscandir_variation8-win32-mb.phpt2 Test scandir() function : usage variations - different file names
12 * Pass a directory containing files with different types of names to test how scandir()
16 echo "*** Testing scandir() : usage variations ***\n";
60 echo "\n-- Call to scandir() --\n";
61 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
13 * Create directories with different permissions to test whether scandir() can access them
16 echo "*** Testing scandir() : usage variations ***\n";
54 var_dump(scandir($dir_path));
64 *** Testing scandir() : usage variations ***
H A Dbug78220.phpt11 if ($dir && scandir($dir) === FALSE) {
/PHP-8.0/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-8.0/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-8.0/ext/standard/tests/file/
H A Dbug36365.phpt2 Bug #36365 (scandir duplicates file name at every 65535th file)
16 var_dump(count(scandir($testdir)));
H A Dbug65701.phpt24 foreach (scandir($file_path) as $file) {
H A Duserdirstream.phpt37 var_dump(scandir('test://example.com/path/to/test'));
/PHP-8.0/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-8.0/main/
H A Dphp_scandir.h35 #define php_scandir scandir
/PHP-8.0/ext/standard/tests/file/windows_mb_path/
H A Dbug70903.phpt2 Bug #70903 scandir wrongly interprets the Turkish "ı" character

Completed in 26 milliseconds

12