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-- 24 25Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d 26bool(false) 27 28Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d 29bool(false) 30 31Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d 32bool(false) 33 34Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d 35bool(false) 36 37Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d 38bool(false) 39 40Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d 41bool(false) 42===DONE===