Annotation of embedaddon/php/ext/standard/tests/file/fstat_variation5.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
1.1.1.2 ! misho 2: Test function fstat() by substituting argument 1 with int values.
1.1 misho 3: --FILE--
4: <?php
5: $variation_array = array (
6: 'int 0' => 0,
7: 'int 1' => 1,
8: 'int 12345' => 12345,
9: 'int -12345' => -2345,
10: );
11:
12:
13: foreach ( $variation_array as $var ) {
14: var_dump(fstat( $var ) );
15: }
16: ?>
17: ===DONE===
18: --EXPECTF--
19:
20: Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
21: bool(false)
22:
23: Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
24: bool(false)
25:
26: Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
27: bool(false)
28:
29: Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
30: bool(false)
31: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>