Deleted Added
full compact
fstat_variation4.phpt (e815e613) fstat_variation4.phpt (04145dc2)
1--TEST--
1--TEST--
2Test function fstat() by substituting agument 1 with float values.
2Test function fstat() by substituting argument 1 with float values.
3--FILE--
4<?php
5$variation_array = array(
6 'float 10.5' => 10.5,
7 'float -10.5' => -10.5,
8 'float 12.3456789000e10' => 12.3456789000e10,
9 'float -12.3456789000e10' => -12.3456789000e10,
10 'float .5' => .5,
11 );
12
13
14foreach ( $variation_array as $var ) {
15 var_dump(fstat( $var ) );
16}
17?>
18===DONE===
19--EXPECTF--
20
3--FILE--
4<?php
5$variation_array = array(
6 'float 10.5' => 10.5,
7 'float -10.5' => -10.5,
8 'float 12.3456789000e10' => 12.3456789000e10,
9 'float -12.3456789000e10' => -12.3456789000e10,
10 'float .5' => .5,
11 );
12
13
14foreach ( $variation_array as $var ) {
15 var_dump(fstat( $var ) );
16}
17?>
18===DONE===
19--EXPECTF--
20
21Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
21Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
22bool(false)
23
22bool(false)
23
24Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
24Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
25bool(false)
26
25bool(false)
26
27Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
27Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
28bool(false)
29
28bool(false)
29
30Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
30Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
31bool(false)
32
31bool(false)
32
33Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
33Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
34bool(false)
35===DONE===
34bool(false)
35===DONE===