14ce8a478SDave Kelsey--TEST--
204145dc2SVeres LajosTest function fstat() by substituting argument 1 with float values.
34ce8a478SDave Kelsey--FILE--
44ce8a478SDave Kelsey<?php
54ce8a478SDave Kelsey$variation_array = array(
64ce8a478SDave Kelsey  'float 10.5' => 10.5,
74ce8a478SDave Kelsey  'float -10.5' => -10.5,
84ce8a478SDave Kelsey  'float 12.3456789000e10' => 12.3456789000e10,
94ce8a478SDave Kelsey  'float -12.3456789000e10' => -12.3456789000e10,
104ce8a478SDave Kelsey  'float .5' => .5,
114ce8a478SDave Kelsey  );
124ce8a478SDave Kelsey
134ce8a478SDave Kelsey
144ce8a478SDave Kelseyforeach ( $variation_array as $var ) {
154ce8a478SDave Kelsey  var_dump(fstat( $var  ) );
164ce8a478SDave Kelsey}
174ce8a478SDave Kelsey?>
184ce8a478SDave Kelsey===DONE===
194ce8a478SDave Kelsey--EXPECTF--
20e5eb9530SAndrea FauldsWarning: fstat() expects parameter 1 to be resource, float given in %s on line %d
214ce8a478SDave Kelseybool(false)
224ce8a478SDave Kelsey
23e5eb9530SAndrea FauldsWarning: fstat() expects parameter 1 to be resource, float given in %s on line %d
244ce8a478SDave Kelseybool(false)
254ce8a478SDave Kelsey
26e5eb9530SAndrea FauldsWarning: fstat() expects parameter 1 to be resource, float given in %s on line %d
274ce8a478SDave Kelseybool(false)
284ce8a478SDave Kelsey
29e5eb9530SAndrea FauldsWarning: fstat() expects parameter 1 to be resource, float given in %s on line %d
304ce8a478SDave Kelseybool(false)
314ce8a478SDave Kelsey
32e5eb9530SAndrea FauldsWarning: fstat() expects parameter 1 to be resource, float given in %s on line %d
334ce8a478SDave Kelseybool(false)
34b746e698SPeter Kokot===DONE===
35