1--TEST-- 2Test function fstat() by substituting argument 1 with int values. 3--FILE-- 4<?php 5$variation_array = array ( 6 'int 0' => 0, 7 'int 1' => 1, 8 'int 12345' => 12345, 9 'int -12345' => -2345, 10 ); 11 12 13foreach ( $variation_array as $var ) { 14 var_dump(fstat( $var ) ); 15} 16?> 17===DONE=== 18--EXPECTF-- 19Warning: fstat() expects parameter 1 to be resource, int given in %s on line %d 20bool(false) 21 22Warning: fstat() expects parameter 1 to be resource, int given in %s on line %d 23bool(false) 24 25Warning: fstat() expects parameter 1 to be resource, int given in %s on line %d 26bool(false) 27 28Warning: fstat() expects parameter 1 to be resource, int given in %s on line %d 29bool(false) 30===DONE=== 31