3 * Prototype : object dir(string $directory[, resource $context])
4 * Description: Directory class with properties, handle and class and methods read, rewind and close
5 * Source code: ext/standard/dir.c
9 * Passing a file as argument to dir() function instead of a directory
10 * and checking if proper warning message is generated.
13 echo "*** Testing dir() : open a file instead of a directory ***\n";
15 // open the file instead of directory