14ce8a478SDave Kelsey--TEST--
204145dc2SVeres LajosTest function fstat() by substituting argument 1 with boolean values.
34ce8a478SDave Kelsey--FILE--
44ce8a478SDave Kelsey<?php
54ce8a478SDave Kelsey$variation_array = array(
64ce8a478SDave Kelsey  'lowercase true' => true,
74ce8a478SDave Kelsey  'lowercase false' =>false,
84ce8a478SDave Kelsey  'uppercase TRUE' =>TRUE,
94ce8a478SDave Kelsey  'uppercase FALSE' =>FALSE,
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--
19fef879a2SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
204ce8a478SDave Kelseybool(false)
214ce8a478SDave Kelsey
22fef879a2SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
234ce8a478SDave Kelseybool(false)
244ce8a478SDave Kelsey
25fef879a2SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
264ce8a478SDave Kelseybool(false)
274ce8a478SDave Kelsey
28fef879a2SGabriel CarusoWarning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
294ce8a478SDave Kelseybool(false)
30b746e698SPeter Kokot===DONE===
31