import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-dir / dir_variation5.php
blob4ae41c87f6521349406601ee094e2f3ab7dd16ef
1 <?php
2 /*
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
6 */
8 /*
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
16 $d = dir(__FILE__);
17 var_dump( $d );
19 echo "Done";