Lines Matching refs:dir
2 Test dir() function : usage variations - unexpected value for 'dir' argument
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Passing non string values to 'directory' argument of dir() and see
22 echo "*** Testing dir() : unexpected values for \$directory argument ***\n";
38 $dfp = opendir( dirname(__FILE__) ); // get a dir handle
70 // resource variable(dir and file handle)
78 // loop through various elements of $unexpected_values to check the behavior of dir()
82 var_dump( dir($unexpected_value) );
91 *** Testing dir() : unexpected values for $directory argument ***
95 Warning: dir() expects parameter 1 to be a valid path, array given in %s on line %d
100 Warning: dir() expects parameter 1 to be a valid path, array given in %s on line %d
105 Warning: dir() expects parameter 1 to be a valid path, array given in %s on line %d
110 Warning: dir() expects parameter 1 to be a valid path, array given in %s on line %d
115 Warning: dir() expects parameter 1 to be a valid path, array given in %s on line %d
126 Warning: dir(1): failed to open dir: %s in %s on line %d
134 Warning: dir(1): failed to open dir: %s in %s on line %d
154 Warning: dir() expects parameter 1 to be a valid path, resource given in %s on line %d
159 Warning: dir() expects parameter 1 to be a valid path, resource given in %s on line %d
164 Warning: dir() expects parameter 1 to be a valid path, object given in %s on line %d