1--TEST--
2Test function fstat() by substituting argument 1 with emptyUnsetUndefNull values.
3--FILE--
4<?php
5$unset_var = 10;
6unset($unset_var);
7
8$variation_array = array(
9  'unset var' => @$unset_var,
10  'undefined var' => @$undefined_var,
11  'empty string DQ' => "",
12  'empty string SQ' => '',
13  'uppercase NULL' => NULL,
14  'lowercase null' => null,
15  );
16
17
18foreach ( $variation_array as $var ) {
19  var_dump(fstat( $var  ) );
20}
21?>
22===DONE===
23--EXPECTF--
24Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
25bool(false)
26
27Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
28bool(false)
29
30Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
31bool(false)
32
33Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
34bool(false)
35
36Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
37bool(false)
38
39Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
40bool(false)
41===DONE===
42