Annotation of embedaddon/php/ext/standard/tests/file/filestat.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: various file stat func tests
3: --FILE--
4: <?php
5:
6: var_dump(fileinode("."));
7: var_dump(fileowner("."));
8: var_dump(filegroup("."));
9: var_dump(fileatime("."));
10: var_dump(filectime("."));
11:
12: var_dump(fileinode("./.."));
13: var_dump(fileowner("./.."));
14: var_dump(filegroup("./.."));
15: var_dump(fileatime("./.."));
16: var_dump(filectime("./.."));
17:
18: var_dump(fileinode(__FILE__));
19: var_dump(fileowner(__FILE__));
20: var_dump(filegroup(__FILE__));
21: var_dump(fileatime(__FILE__));
22: var_dump(filectime(__FILE__));
23:
24: var_dump(fileinode("/no/such/file/or/dir"));
25: var_dump(fileowner("/no/such/file/or/dir"));
26: var_dump(filegroup("/no/such/file/or/dir"));
27: var_dump(fileatime("/no/such/file/or/dir"));
28: var_dump(filectime("/no/such/file/or/dir"));
29:
30: echo "Done\n";
31: ?>
32: --EXPECTF--
33: int(%d)
34: int(%d)
35: int(%d)
36: int(%d)
37: int(%d)
38: int(%d)
39: int(%d)
40: int(%d)
41: int(%d)
42: int(%d)
43: int(%d)
44: int(%d)
45: int(%d)
46: int(%d)
47: int(%d)
48:
49: Warning: fileinode(): stat failed for /no/such/file/or/dir in %s on line %d
50: bool(false)
51:
52: Warning: fileowner(): stat failed for /no/such/file/or/dir in %s on line %d
53: bool(false)
54:
55: Warning: filegroup(): stat failed for /no/such/file/or/dir in %s on line %d
56: bool(false)
57:
58: Warning: fileatime(): stat failed for /no/such/file/or/dir in %s on line %d
59: bool(false)
60:
61: Warning: filectime(): stat failed for /no/such/file/or/dir in %s on line %d
62: bool(false)
63: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>