1--TEST--
2Test function fstat() by substituting argument 1 with array values.
3--FILE--
4<?php
5$index_array = array(1, 2, 3);
6$assoc_array = array(1 => 'one', 2 => 'two');
7
8$variation_array = array(
9  'empty array' => array(),
10  'int indexed array' => $index_array,
11  'associative array' => $assoc_array,
12  'nested arrays' => array('foo', $index_array, $assoc_array),
13  );
14
15
16foreach ( $variation_array as $var ) {
17  var_dump(fstat( $var  ) );
18}
19?>
20===DONE===
21--EXPECTF--
22
23Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
24bool(false)
25
26Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
27bool(false)
28
29Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
30bool(false)
31
32Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
33bool(false)
34===DONE===