import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / fileinode_basic.php
blobd86e1918eea67ee3ac5210c585dc595e8349fd1d
1 <?php
2 /*
3 Prototype: int fileinode ( string $filename );
4 Description: Returns the inode number of the file, or FALSE in case of an error.
5 */
7 echo "*** Testing fileinode() with file, directory ***\n";
9 /* Getting inode of created file */
10 $file_path = dirname(__FILE__);
11 fopen("$file_path/inode.tmp", "w");
12 print( fileinode("$file_path/inode.tmp") )."\n";
14 /* Getting inode of current file */
15 print( fileinode(__FILE__) )."\n";
17 /* Getting inode of directories */
18 print( fileinode(".") )."\n";
19 print( fileinode("./..") )."\n";
21 echo "\n*** Done ***";<?php
22 unlink (dirname(__FILE__)."/inode.tmp");