File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
file /
fstat.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:03 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
fstat() tests
--FILE--
<?php
$filename = dirname(__FILE__)."/fstat.dat";
$fp = fopen($filename, "w");
var_dump(fstat($fp));
fclose($fp);
var_dump(fstat($fp));
@unlink($filename);
echo "Done\n";
?>
--EXPECTF--
array(26) {
[0]=>
int(%i)
[1]=>
int(%i)
[2]=>
int(%i)
[3]=>
int(%i)
[4]=>
int(%i)
[5]=>
int(%i)
[6]=>
int(%i)
[7]=>
int(%i)
[8]=>
int(%i)
[9]=>
int(%i)
[10]=>
int(%i)
[11]=>
int(%i)
[12]=>
int(%i)
["dev"]=>
int(%i)
["ino"]=>
int(%i)
["mode"]=>
int(%i)
["nlink"]=>
int(%i)
["uid"]=>
int(%i)
["gid"]=>
int(%i)
["rdev"]=>
int(%i)
["size"]=>
int(%i)
["atime"]=>
int(%i)
["mtime"]=>
int(%i)
["ctime"]=>
int(%i)
["blksize"]=>
int(%i)
["blocks"]=>
int(%i)
}
Warning: fstat(): %d is not a valid stream resource in %s on line %d
bool(false)
Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>