/PHP-7.4/tests/security/ |
H A D | open_basedir_scandir.phpt | 9 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 D | scandir_error2.phpt | 2 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 D | scandir_variation6.phpt | 2 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 D | scandir_basic.phpt | 2 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 D | scandir_variation3-win32-mb.phpt | 2 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 D | scandir_basic-win32-mb.phpt | 2 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 D | scandir_variation5.phpt | 2 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 D | scandir_variation4-win32-mb.phpt | 2 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 D | scandir_variation4.phpt | 2 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 D | scandir_variation10.phpt | 2 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 D | scandir_variation10-win32-mb.phpt | 2 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 D | scandir_variation9.phpt | 2 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 D | scandir_variation9-win32-mb.phpt | 2 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 D | scandir_variation8-win32-mb.phpt | 2 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 D | scandir_variation8.phpt | 2 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 D | scandir_variation7.phpt | 2 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 D | bug78220.phpt | 11 if ($dir && scandir($dir) === FALSE) {
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | bug41693.phpt | 2 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 D | bug65701.phpt | 24 foreach (scandir($file_path) as $file) {
|
H A D | userdirstream.phpt | 37 var_dump(scandir('test://example.com/path/to/test'));
|
/PHP-7.4/ext/standard/tests/ini_info/ |
H A D | php_ini_scanned_files.phpt | 7 $scandir = __DIR__.DIRECTORY_SEPARATOR.'scandir'; 14 putenv('PHP_INI_SCAN_DIR='.$scandir);
|
/PHP-7.4/ext/standard/tests/file/windows_links/ |
H A D | bug48746_2.phpt | 29 print_r(scandir("mklink_junction")); 30 print_r(scandir("$fullpath\\mnt\\test\\directory")); 31 print_r(scandir("$fullpath\\mnt\\test\\mklink_junction"));
|
H A D | bug73962.phpt | 27 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 D | php_scandir.h | 37 #define php_scandir scandir
|
/PHP-7.4/ext/standard/ |
H A D | php_dir.h | 36 PHP_FUNCTION(scandir);
|