14ce8a478SDave Kelsey--TEST--
204145dc2SVeres LajosTest function fstat() by substituting argument 1 with array values.
34ce8a478SDave Kelsey--FILE--
44ce8a478SDave Kelsey<?php
54ce8a478SDave Kelsey$index_array = array(1, 2, 3);
64ce8a478SDave Kelsey$assoc_array = array(1 => 'one', 2 => 'two');
74ce8a478SDave Kelsey
84ce8a478SDave Kelsey$variation_array = array(
94ce8a478SDave Kelsey  'empty array' => array(),
104ce8a478SDave Kelsey  'int indexed array' => $index_array,
114ce8a478SDave Kelsey  'associative array' => $assoc_array,
124ce8a478SDave Kelsey  'nested arrays' => array('foo', $index_array, $assoc_array),
134ce8a478SDave Kelsey  );
144ce8a478SDave Kelsey
154ce8a478SDave Kelsey
164ce8a478SDave Kelseyforeach ( $variation_array as $var ) {
174ce8a478SDave Kelsey  var_dump(fstat( $var  ) );
184ce8a478SDave Kelsey}
194ce8a478SDave Kelsey?>
204ce8a478SDave Kelsey===DONE===
214ce8a478SDave Kelsey--EXPECTF--
224ce8a478SDave KelseyWarning: fstat() expects parameter 1 to be resource, array given in %s on line %d
234ce8a478SDave Kelseybool(false)
244ce8a478SDave Kelsey
254ce8a478SDave KelseyWarning: fstat() expects parameter 1 to be resource, array given in %s on line %d
264ce8a478SDave Kelseybool(false)
274ce8a478SDave Kelsey
284ce8a478SDave KelseyWarning: fstat() expects parameter 1 to be resource, array given in %s on line %d
294ce8a478SDave Kelseybool(false)
304ce8a478SDave Kelsey
314ce8a478SDave KelseyWarning: fstat() expects parameter 1 to be resource, array given in %s on line %d
324ce8a478SDave Kelseybool(false)
33b746e698SPeter Kokot===DONE===
34