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--
22Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
23bool(false)
24
25Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
26bool(false)
27
28Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
29bool(false)
30
31Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
32bool(false)
33===DONE===
34