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