1--TEST--
2Test fileinode() function: Error conditions
3--FILE--
4<?php
5echo "*** Testing error conditions of fileinode() ***";
6
7/* Non-existing file or dir */
8var_dump( fileinode("/no/such/file/dir") );
9
10/* Invalid arguments */
11var_dump( fileinode("string") );
12var_dump( fileinode(100) );
13
14echo "\n*** Done ***";
15?>
16--EXPECTF--
17*** Testing error conditions of fileinode() ***
18Warning: fileinode(): stat failed for /no/such/file/dir in %s on line %d
19bool(false)
20
21Warning: fileinode(): stat failed for string in %s on line %d
22bool(false)
23
24Warning: fileinode(): stat failed for 100 in %s on line %d
25bool(false)
26
27*** Done ***
28