1--TEST--
2Test function fstat() by substituting agument 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
21Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
22bool(false)
23
24Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
25bool(false)
26
27Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
28bool(false)
29
30Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
31bool(false)
32
33Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
34bool(false)
35===DONE===