1--TEST--
2Test fileinode() function: Basic functionality
3--FILE--
4<?php
5echo "*** Testing fileinode() with file, directory ***\n";
6
7/* Getting inode of created file */
8$file_path = __DIR__;
9fopen("$file_path/inode.tmp", "w");
10print( fileinode("$file_path/inode.tmp") )."\n";
11
12/* Getting inode of current file */
13print( fileinode(__FILE__) )."\n";
14
15/* Getting inode of directories */
16print( fileinode(".") )."\n";
17print( fileinode("./..") )."\n";
18
19echo "\n*** Done ***";
20--CLEAN--
21<?php
22unlink (__DIR__."/inode.tmp");
23?>
24--EXPECTF--
25*** Testing fileinode() with file, directory ***
26%i
27%i
28%i
29%i
30
31*** Done ***
32