14ce8a478SDave Kelsey--TEST--
204145dc2SVeres LajosTest function fstat() by substituting argument 1 with int values.
34ce8a478SDave Kelsey--FILE--
44ce8a478SDave Kelsey<?php
54ce8a478SDave Kelsey$variation_array = array (
64ce8a478SDave Kelsey    'int 0' => 0,
74ce8a478SDave Kelsey    'int 1' => 1,
84ce8a478SDave Kelsey    'int 12345' => 12345,
94ce8a478SDave Kelsey    'int -12345' => -2345,
104ce8a478SDave Kelsey    );
114ce8a478SDave Kelsey
124ce8a478SDave Kelsey
134ce8a478SDave Kelseyforeach ( $variation_array as $var ) {
144ce8a478SDave Kelsey  var_dump(fstat( $var  ) );
154ce8a478SDave Kelsey}
164ce8a478SDave Kelsey?>
174ce8a478SDave Kelsey===DONE===
184ce8a478SDave Kelsey--EXPECTF--
19ce1d69a1SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, int given in %s on line %d
204ce8a478SDave Kelseybool(false)
214ce8a478SDave Kelsey
22ce1d69a1SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, int given in %s on line %d
234ce8a478SDave Kelseybool(false)
244ce8a478SDave Kelsey
25ce1d69a1SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, int given in %s on line %d
264ce8a478SDave Kelseybool(false)
274ce8a478SDave Kelsey
28ce1d69a1SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, int given in %s on line %d
294ce8a478SDave Kelseybool(false)
30b746e698SPeter Kokot===DONE===
31