1--TEST--
2stream_get_meta_data() on a udp socket
3--FILE--
4<?php
5
6$tcp_socket = stream_socket_server('tcp://127.0.0.1:31337');
7var_dump(stream_get_meta_data($tcp_socket));
8fclose($tcp_socket);
9
10?>
11--EXPECTF--
12array(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}
28