Annotation of embedaddon/php/ext/standard/tests/streams/stream_get_meta_data_socket_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: stream_get_meta_data() on a udp socket
3: --FILE--
4: <?php
5:
6: $tcp_socket = stream_socket_server('tcp://127.0.0.1:31337');
7: var_dump(stream_get_meta_data($tcp_socket));
8: fclose($tcp_socket);
9:
10: ?>
11: --EXPECTF--
12: array(7) {
13: ["stream_type"]=>
14: string(%d) "tcp_socke%s"
15: ["mode"]=>
16: string(2) "r+"
17: ["unread_bytes"]=>
18: int(0)
19: ["seekable"]=>
20: bool(false)
21: ["timed_out"]=>
22: bool(false)
23: ["blocked"]=>
24: bool(true)
25: ["eof"]=>
26: bool(false)
27: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>