Annotation of embedaddon/php/ext/standard/tests/file/fstat.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: fstat() tests
! 3: --FILE--
! 4: <?php
! 5:
! 6: $filename = dirname(__FILE__)."/fstat.dat";
! 7:
! 8: $fp = fopen($filename, "w");
! 9: var_dump(fstat($fp));
! 10: fclose($fp);
! 11: var_dump(fstat($fp));
! 12:
! 13: @unlink($filename);
! 14: echo "Done\n";
! 15: ?>
! 16: --EXPECTF--
! 17: array(26) {
! 18: [0]=>
! 19: int(%i)
! 20: [1]=>
! 21: int(%i)
! 22: [2]=>
! 23: int(%i)
! 24: [3]=>
! 25: int(%i)
! 26: [4]=>
! 27: int(%i)
! 28: [5]=>
! 29: int(%i)
! 30: [6]=>
! 31: int(%i)
! 32: [7]=>
! 33: int(%i)
! 34: [8]=>
! 35: int(%i)
! 36: [9]=>
! 37: int(%i)
! 38: [10]=>
! 39: int(%i)
! 40: [11]=>
! 41: int(%i)
! 42: [12]=>
! 43: int(%i)
! 44: ["dev"]=>
! 45: int(%i)
! 46: ["ino"]=>
! 47: int(%i)
! 48: ["mode"]=>
! 49: int(%i)
! 50: ["nlink"]=>
! 51: int(%i)
! 52: ["uid"]=>
! 53: int(%i)
! 54: ["gid"]=>
! 55: int(%i)
! 56: ["rdev"]=>
! 57: int(%i)
! 58: ["size"]=>
! 59: int(%i)
! 60: ["atime"]=>
! 61: int(%i)
! 62: ["mtime"]=>
! 63: int(%i)
! 64: ["ctime"]=>
! 65: int(%i)
! 66: ["blksize"]=>
! 67: int(%i)
! 68: ["blocks"]=>
! 69: int(%i)
! 70: }
! 71:
! 72: Warning: fstat(): %d is not a valid stream resource in %s on line %d
! 73: bool(false)
! 74: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>