1--TEST--
2Testing socket_get_status()
3--FILE--
4<?php
5
6$tcp_socket = stream_socket_server('tcp://127.0.0.1:31337');
7var_dump(socket_get_status($tcp_socket));
8fclose($tcp_socket);
9
10?>
11--EXPECTF--
12array(7) {
13  ["stream_type"]=>
14  string(%d) "tcp_socket%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