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?>
21--CLEAN--
22<?php
23unlink (__DIR__."/inode.tmp");
24?>
25--EXPECTF--
26*** Testing fileinode() with file, directory ***
27%i
28%i
29%i
30%i
31
32*** Done ***
33