1--TEST--
2Test function fstat() by substituting argument 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--
23Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
24bool(false)
25
26Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
27bool(false)
28
29Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
30bool(false)
31
32Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
33bool(false)
34===DONE===
35