/PHP-5.4/ext/standard/tests/dir/ |
H A D | scandir_variation1.phpt | 20 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 D | scandir_error2-win32.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 -- 40 Warning: scandir(): (errno %d): %s in %s on line %d 43 -- Pass scandir() a relative path that does not exist -- [all …]
|
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_error1.phpt | 2 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 D | scandir_variation1-win32.phpt | 20 echo "*** Testing scandir() : usage variations ***\n"; 95 var_dump( scandir($input) ); 103 *** Testing scandir() : usage variations *** 111 Warning: scandir(): (errno %d): %s in %s on line %d 120 Warning: scandir(): (errno %d): %s in %s on line %d 129 Warning: scandir(): (errno %d): %s in %s on line %d 138 Warning: scandir(): (errno %d): %s in %s on line %d 147 Warning: scandir(): (errno %d): %s in %s on line %d 156 Warning: scandir(): (errno %d): %s in %s on line %d 165 Warning: scandir(): (errno %d): %s in %s on line %d [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_variation6-win32.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 *** 59 Warning: scandir(): (errno %d): %s in %s on line %d 66 Warning: scandir(): (errno %d): %s in %s on line %d 75 Warning: scandir(): (errno %d): %s in %s on line %d [all …]
|
H A D | scandir_variation3.phpt | 2 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 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_variation2.phpt | 2 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 D | scandir_variation5.phpt | 2 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 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"; 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 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_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_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 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.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-5.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 | 22 foreach (scandir($file_path) as $file) {
|
H A D | userdirstream.phpt | 37 var_dump(scandir('test://example.com/path/to/test'));
|
/PHP-5.4/ext/pcre/ |
H A D | upgrade-pcre.php | 36 foreach (scandir($path) as $file) { 85 $dirorig = scandir('pcrelib/testdata'); 94 $dirnew = scandir("$newpcre/testdata");
|
/PHP-5.4/ext/standard/tests/file/windows_links/ |
H A D | bug48746_2.phpt | 35 print_r(scandir("mklink_junction")); 36 print_r(scandir("$fullpath\\mnt\\test\\directory")); 37 print_r(scandir("$fullpath\\mnt\\test\\mklink_junction"));
|
H A D | bug48746_3.phpt | 31 print_r(scandir("junction"));
|
/PHP-5.4/main/ |
H A D | php_scandir.h | 43 #define php_scandir scandir
|
/PHP-5.4/ext/standard/ |
H A D | php_dir.h | 38 PHP_FUNCTION(scandir);
|