summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fileowner_error.phpt
blob: c4013a915c5cd6315ef0adeb84ceff53d71fdd7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Test of fileowner() function: error conditions
--FILE--
<?php

echo "*** Testing fileowner(): error conditions ***\n";
/* Non-existing file or dir */
var_dump( fileowner("/no/such/file/dir") );

/* Invalid arguments */
var_dump( fileowner("string") );
var_dump( fileowner(100) );

echo "\n*** Done ***\n";
?>
--EXPECTF--
*** Testing fileowner(): error conditions ***

Warning: fileowner(): stat failed for /no/such/file/dir in %s on line %d
bool(false)

Warning: fileowner(): stat failed for string in %s on line %d
bool(false)

Warning: fileowner(): stat failed for 100 in %s on line %d
bool(false)

*** Done ***