1--TEST--
2Test function fstat() by substituting agument 1 with string values.
3--FILE--
4<?php
5$heredoc = <<<EOT
6hello world
7EOT;
8
9$variation_array = array(
10  'string DQ' => "string",
11  'string SQ' => 'string',
12  'mixed case string' => "sTrInG",
13  'heredoc' => $heredoc,
14  );
15
16
17foreach ( $variation_array as $var ) {
18  var_dump(fstat( $var  ) );
19}
20?>
21===DONE===
22--EXPECTF--
23
24Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
25bool(false)
26
27Warning: fstat() expects parameter 1 to be resource, string 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===DONE===