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