Lines Matching refs:scandir

2 Test scandir() function : usage variations - different data types as $dir arg
11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
17 * Pass different data types as $dir argument to test behaviour of scandir()
20 echo "*** Testing scandir() : usage variations ***\n";
91 // loop through each element of $inputs to check the behavior of scandir()
95 var_dump( scandir($input) );
103 *** Testing scandir() : usage variations ***
107 Warning: scandir(0): failed to open dir: %s in %s on line %d
109 Warning: scandir(): (errno %d): %s in %s on line %d
114 Warning: scandir(1): failed to open dir: %s in %s on line %d
116 Warning: scandir(): (errno %d): %s in %s on line %d
121 Warning: scandir(12345): failed to open dir: %s in %s on line %d
123 Warning: scandir(): (errno %d): %s in %s on line %d
128 Warning: scandir(-2345): failed to open dir: %s in %s on line %d
130 Warning: scandir(): (errno %d): %s in %s on line %d
135 Warning: scandir(10.5): failed to open dir: %s in %s on line %d
137 Warning: scandir(): (errno %d): %s in %s on line %d
142 Warning: scandir(-10.5): failed to open dir: %s in %s on line %d
144 Warning: scandir(): (errno %d): %s in %s on line %d
149 Warning: scandir(123456789000): failed to open dir: %s in %s on line %d
151 Warning: scandir(): (errno %d): %s in %s on line %d
156 Warning: scandir(1.23456789E-9): failed to open dir: %s in %s on line %d
158 Warning: scandir(): (errno %d): %s in %s on line %d
163 Warning: scandir(0.5): failed to open dir: %s in %s on line %d
165 Warning: scandir(): (errno %d): %s in %s on line %d
170 Warning: scandir(): Directory name cannot be empty in %s on line %d
175 Warning: scandir(): Directory name cannot be empty in %s on line %d
180 Warning: scandir(1): failed to open dir: %s in %s on line %d
182 Warning: scandir(): (errno %d): %s in %s on line %d
187 Warning: scandir(): Directory name cannot be empty in %s on line %d
192 Warning: scandir(1): failed to open dir: %s in %s on line %d
194 Warning: scandir(): (errno %d): %s in %s on line %d
199 Warning: scandir(): Directory name cannot be empty in %s on line %d
204 Warning: scandir(): Directory name cannot be empty in %s on line %d
209 Warning: scandir(): Directory name cannot be empty in %s on line %d
214 Warning: scandir() expects parameter 1 to be a valid path, array given in %s on line %d
219 Warning: scandir(string): failed to open dir: %s in %s on line %d
221 Warning: scandir(): (errno %d): %s in %s on line %d
226 Warning: scandir(string): failed to open dir: %s in %s on line %d
228 Warning: scandir(): (errno %d): %s in %s on line %d
233 Warning: scandir(hello world): failed to open dir: %s in %s on line %d
235 Warning: scandir(): (errno %d): %s in %s on line %d
240 Warning: scandir(Class A object): failed to open dir: %s in %s on line %d
242 Warning: scandir(): (errno %d): %s in %s on line %d
247 Warning: scandir(): Directory name cannot be empty in %s on line %d
252 Warning: scandir(): Directory name cannot be empty in %s on line %d
257 Warning: scandir() expects parameter 1 to be a valid path, resource given in %s on line %d