Home
last modified time | relevance | path

Searched refs:readdir (Results 1 – 25 of 58) sorted by relevance

123

/PHP-7.3/ext/standard/tests/dir/
H A Dreaddir_variation1.phpt2 Test readdir() function : usage variations - different data types as $dir_handle arg
5 /* Prototype : string readdir([resource $dir_handle])
11 * Pass different data types as $dir_handle argument to readdir() to test behaviour
14 echo "*** Testing readdir() : usage variations ***\n";
79 // loop through each element of $inputs to check the behavior of readdir()
83 var_dump( readdir($input) );
89 *** Testing readdir() : usage variations ***
93 Warning: readdir() expects parameter 1 to be resource, int given in %s on line %d
98 Warning: readdir() expects parameter 1 to be resource, int given in %s on line %d
103 Warning: readdir() expects parameter 1 to be resource, int given in %s on line %d
[all …]
H A Dreaddir_error.phpt2 Test readdir() function : error conditions - Incorrect number of args
5 /* Prototype : string readdir([resource $dir_handle])
11 * Pass incorrect number of arguments to readdir() to test behaviour
14 echo "*** Testing readdir() : error conditions ***\n";
17 //Test readdir with one more than the expected number of arguments
18 echo "\n-- Testing readdir() function with more than expected no. of arguments --\n";
25 var_dump( readdir($dir_handle, $extra_arg) );
37 *** Testing readdir() : error conditions ***
39 -- Testing readdir() function with more than expected no. of arguments --
41 Warning: readdir() expects at most 1 parameter, 2 given in %s on line %d
H A Dreaddir_error-win32-mb.phpt2 Test readdir() function : error conditions - Incorrect number of args
11 /* Prototype : string readdir([resource $dir_handle])
17 * Pass incorrect number of arguments to readdir() to test behaviour
20 echo "*** Testing readdir() : error conditions ***\n";
23 //Test readdir with one more than the expected number of arguments
24 echo "\n-- Testing readdir() function with more than expected no. of arguments --\n";
31 var_dump( readdir($dir_handle, $extra_arg) );
43 *** Testing readdir() : error conditions ***
45 -- Testing readdir() function with more than expected no. of arguments --
47 Warning: readdir() expects at most 1 parameter, 2 given in %s on line %d
H A Dreaddir_basic.phpt2 Test readdir() function : basic functionality
5 /* Prototype : string readdir([resource $dir_handle])
11 * Test basic functionality of readdir()
14 echo "*** Testing readdir() : basic functionality ***\n";
24 echo "\n-- Call readdir() with \$path argument --\n";
27 while( FALSE !== ($file = readdir($dh)) ) {
35 echo "\n-- Call readdir() without \$path argument --\n";
38 while( FALSE !== ( $file = readdir() ) ) {
56 *** Testing readdir() : basic functionality ***
58 -- Call readdir() with $path argument --
[all …]
H A Dreaddir_basic-win32-mb.phpt2 Test readdir() function : basic functionality
11 /* Prototype : string readdir([resource $dir_handle])
17 * Test basic functionality of readdir()
20 echo "*** Testing readdir() : basic functionality ***\n";
30 echo "\n-- Call readdir() with \$path argument --\n";
33 while( FALSE !== ($file = readdir($dh)) ) {
41 echo "\n-- Call readdir() without \$path argument --\n";
44 while( FALSE !== ( $file = readdir() ) ) {
62 *** Testing readdir() : basic functionality ***
64 -- Call readdir() with $path argument --
[all …]
H A Dreaddir_variation7.phpt2 Test readdir() function : usage variations - use file pointers
5 /* Prototype : string readdir([resource $dir_handle])
11 * Open a file pointer using fopen and pass to readdir() to test behaviour
14 echo "*** Testing readdir() : usage variations ***\n";
18 var_dump( readdir($fp) );
23 *** Testing readdir() : usage variations ***
26 Warning: readdir(): %d is not a valid Directory resource in %s on line %d
H A Dreaddir_variation2.phpt2 Test readdir() function : usage variations - empty directories
5 /* Prototype : string readdir([resource $dir_handle])
11 * Pass readdir() a directory handle pointing to an empty directory to test behaviour
14 echo "*** Testing readdir() : usage variations ***\n";
20 echo "\n-- Pass an empty directory to readdir() --\n";
25 while(FALSE !== ($file = readdir($dir_handle))){
43 *** Testing readdir() : usage variations ***
45 -- Pass an empty directory to readdir() --
H A Dreaddir_variation2-win32-mb.phpt2 Test readdir() function : usage variations - empty directories
11 /* Prototype : string readdir([resource $dir_handle])
17 * Pass readdir() a directory handle pointing to an empty directory to test behaviour
20 echo "*** Testing readdir() : usage variations ***\n";
26 echo "\n-- Pass an empty directory to readdir() --\n";
31 while(FALSE !== ($file = readdir($dir_handle))){
49 *** Testing readdir() : usage variations ***
51 -- Pass an empty directory to readdir() --
H A Dreaddir_variation5.phpt70 var_dump(readdir($dh));
88 -- Calling readdir() --
94 -- Calling readdir() --
100 -- Calling readdir() --
106 -- Calling readdir() --
112 -- Calling readdir() --
118 -- Calling readdir() --
124 -- Calling readdir() --
130 -- Calling readdir() --
136 -- Calling readdir() --
[all …]
H A Dreaddir_variation3-win32-mb.phpt2 Test readdir() function : usage variations - sub-directories
11 /* Prototype : string readdir([resource $dir_handle])
18 * to test behaviour of readdir()
21 echo "*** Testing readdir() : usage variations ***\n";
36 while(FALSE !== ($file = readdir($dir_handle))) {
61 *** Testing readdir() : usage variations ***
H A Dreaddir_variation3.phpt2 Test readdir() function : usage variations - sub-directories
5 /* Prototype : string readdir([resource $dir_handle])
12 * to test behaviour of readdir()
15 echo "*** Testing readdir() : usage variations ***\n";
30 while(FALSE !== ($file = readdir($dir_handle))) {
55 *** Testing readdir() : usage variations ***
H A Dreaddir_variation6-win32-mb.phpt2 Test readdir() function : usage variations - operate on previously opened directory
11 /* Prototype : string readdir([resource $dir_handle])
18 * to readdir() to test behaviour
21 echo "*** Testing readdir() : usage variations ***\n";
41 while (FALSE !== ($file = readdir($dir_handle1))) {
51 while (FALSE !== ($file = readdir())) {
71 *** Testing readdir() : usage variations ***
H A Dreaddir_variation6.phpt2 Test readdir() function : usage variations - operate on previously opened directory
5 /* Prototype : string readdir([resource $dir_handle])
12 * to readdir() to test behaviour
15 echo "*** Testing readdir() : usage variations ***\n";
35 while (FALSE !== ($file = readdir($dir_handle1))) {
45 while (FALSE !== ($file = readdir())) {
65 *** Testing readdir() : usage variations ***
H A Dreaddir_variation4-win32-mb.phpt2 Test readdir() function : usage variations - different file names
11 /* Prototype : string readdir([resource $dir_handle])
18 * files with different file names to test how readdir() reads them
21 echo "*** Testing readdir() : usage variations ***\n";
66 echo "\n-- Call to readdir() --\n";
68 while(FALSE !== ($file = readdir($dir_handle))){
91 *** Testing readdir() : usage variations ***
149 -- Call to readdir() --
H A Dreaddir_variation4.phpt2 Test readdir() function : usage variations - different file names
5 /* Prototype : string readdir([resource $dir_handle])
12 * files with different file names to test how readdir() reads them
15 echo "*** Testing readdir() : usage variations ***\n";
60 echo "\n-- Call to readdir() --\n";
62 while(FALSE !== ($file = readdir($dir_handle))){
85 *** Testing readdir() : usage variations ***
143 -- Call to readdir() --
H A Drewinddir_basic.phpt32 while(FALSE !== $file1 = readdir($dh1)) {
40 var_dump(readdir($dh1) == $first);
44 while(FALSE !== $file2 = readdir()) {
52 var_dump(readdir() == $first);
H A Drewinddir_basic-win32-mb.phpt38 while(FALSE !== $file1 = readdir($dh1)) {
46 var_dump(readdir($dh1) == $first);
50 while(FALSE !== $file2 = readdir()) {
58 var_dump(readdir() == $first);
/PHP-7.3/ext/standard/tests/file/
H A Dfseek_dir_basic.phpt13 echo "call readdir():\n";
16 while( FALSE !== ($files[] = readdir($dh)) ) {}
24 echo "call readdir():\n";
25 while( FALSE !== ($files[] = readdir($dh)) ) {}
33 echo "call readdir():\n";
34 while( FALSE !== ($files[] = readdir($dh)) ) {}
44 call readdir():
63 call readdir():
81 call readdir():
H A Dbug24482.phpt20 while (is_string($file = readdir($dh))) {
34 echo "opendir/readdir/isdir found:\n";
/PHP-7.3/ext/phar/tests/
H A Dopendir_edgecases.phpt23 while (false !== ($b = readdir($a))) {
37 while (false !== ($b = readdir($a))) {
/PHP-7.3/ext/phar/tests/tar/
H A Dtar_003.phpt34 while (false !== ($v = readdir($tar))) {
43 while (false !== ($v = readdir($tar))) {
/PHP-7.3/win32/
H A Dreaddir.h41 struct dirent *readdir(DIR *);
/PHP-7.3/ext/zip/tests/
H A Dutils.inc12 while (false !== ($item = readdir($handle))) {
/PHP-7.3/ext/standard/tests/file/windows_mb_path/
H A Dtest_readdir_mb_names.phpt2 Test readdir() with a dir for multibyte filenames
44 while (($file = readdir($dh)) !== false) {
/PHP-7.3/ext/standard/tests/streams/
H A Dopendir-002.phpt18 while ($fn=readdir($ds)) {

Completed in 65 milliseconds

123