Searched refs:readdir (Results 1 – 25 of 56) sorted by relevance
123
2 Test readdir() function : usage variations - different data types as $dir_handle arg5 /* Prototype : string readdir([resource $dir_handle])11 * Pass different data types as $dir_handle argument to readdir() to test behaviour14 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 ***113 Warning: readdir() expects parameter 1 to be resource, double given in %s on line %d138 Warning: readdir() expects parameter 1 to be resource, null given in %s on line %d143 Warning: readdir() expects parameter 1 to be resource, null given in %s on line %d[all …]
2 Test readdir() function : error conditions - Incorrect number of args5 /* Prototype : string readdir([resource $dir_handle])11 * Pass incorrect number of arguments to readdir() to test behaviour14 echo "*** Testing readdir() : error conditions ***\n";17 //Test readdir with one more than the expected number of arguments18 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
2 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 …]
2 Test readdir() function : usage variations - use file pointers5 /* Prototype : string readdir([resource $dir_handle])11 * Open a file pointer using fopen and pass to readdir() to test behaviour14 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
2 Test readdir() function : usage variations - empty directories5 /* Prototype : string readdir([resource $dir_handle])11 * Pass readdir() a directory handle pointing to an empty directory to test behaviour14 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() --
70 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 …]
2 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 ***
2 Test readdir() function : usage variations - operate on previously opened directory5 /* Prototype : string readdir([resource $dir_handle])12 * to readdir() to test behaviour15 echo "*** Testing readdir() : usage variations ***\n";35 while (FALSE !== ($file = readdir($dir_handle1))) {45 while (FALSE !== ($file = readdir())) {65 *** Testing readdir() : usage variations ***
2 Test readdir() function : usage variations - different file names5 /* Prototype : string readdir([resource $dir_handle])12 * files with different file names to test how readdir() reads them15 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() --
32 while(FALSE !== $file1 = readdir($dh1)) {40 var_dump(readdir($dh1) == $first);44 while(FALSE !== $file2 = readdir()) {52 var_dump(readdir() == $first);
34 var_dump( readdir($d->handle) );35 var_dump( readdir($d->handle) );
13 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():
20 while (is_string($file = readdir($dh))) {34 echo "opendir/readdir/isdir found:\n";
23 while (false !== ($b = readdir($a))) {37 while (false !== ($b = readdir($a))) {
25 while (false !== ($a = readdir($dir))) {
26 while (false !== ($a = readdir($dir))) {
28 while (false !== ($a = readdir($dir))) {
40 struct dirent *readdir(DIR *);
44 struct dirent *readdir(DIR *);
35 while (false !== ($v = readdir($tar))) {44 while (false !== ($v = readdir($tar))) {
12 while (false !== ($item = readdir($handle))) {
13 while (($file = readdir($dir)) !== FALSE) {
13 // We need to play tricks to get our readdir.h used by apache
16 // We need to play tricks to get our readdir.h used by apache
Completed in 28 milliseconds