Annotation of embedaddon/php/ext/standard/tests/streams/stream_get_meta_data_file_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: stream_get_meta_data() basic functionality
3: --FILE--
4: <?php
5:
6: $fp = fopen(__FILE__, "r");
7:
8: var_dump(stream_get_meta_data($fp));
9:
10: fclose($fp);
11:
12: ?>
13: --EXPECTF--
14: array(9) {
15: ["wrapper_type"]=>
16: string(9) "plainfile"
17: ["stream_type"]=>
18: string(5) "STDIO"
19: ["mode"]=>
20: string(1) "r"
21: ["unread_bytes"]=>
22: int(0)
23: ["seekable"]=>
24: bool(true)
25: ["uri"]=>
26: string(%i) "%sstream_get_meta_data_file_basic.php"
27: ["timed_out"]=>
28: bool(false)
29: ["blocked"]=>
30: bool(true)
31: ["eof"]=>
32: bool(false)
33: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>