1--TEST-- 2Test function fstat() by calling it with its expected arguments 3--FILE-- 4<?php 5$fp = fopen (__FILE__, 'r'); 6var_dump(fstat( $fp ) ); 7fclose($fp); 8?> 9--EXPECTF-- 10array(26) { 11 [0]=> 12 int(%i) 13 [1]=> 14 int(%i) 15 [2]=> 16 int(%i) 17 [3]=> 18 int(%i) 19 [4]=> 20 int(%i) 21 [5]=> 22 int(%i) 23 [6]=> 24 int(%i) 25 [7]=> 26 int(%i) 27 [8]=> 28 int(%i) 29 [9]=> 30 int(%i) 31 [10]=> 32 int(%i) 33 [11]=> 34 int(%i) 35 [12]=> 36 int(%i) 37 ["dev"]=> 38 int(%i) 39 ["ino"]=> 40 int(%i) 41 ["mode"]=> 42 int(%i) 43 ["nlink"]=> 44 int(%i) 45 ["uid"]=> 46 int(%i) 47 ["gid"]=> 48 int(%i) 49 ["rdev"]=> 50 int(%i) 51 ["size"]=> 52 int(%i) 53 ["atime"]=> 54 int(%i) 55 ["mtime"]=> 56 int(%i) 57 ["ctime"]=> 58 int(%i) 59 ["blksize"]=> 60 int(%i) 61 ["blocks"]=> 62 int(%i) 63} 64