1--TEST--
2Testing fread() on a TCP server socket
3--FILE--
4<?php
5
6$tcp_socket = stream_socket_server('tcp://127.0.0.1:31337');
7
8socket_set_timeout($tcp_socket, 0, 1000);
9
10var_dump(fread($tcp_socket, 1));
11
12fclose($tcp_socket);
13
14?>
15--EXPECT--
16string(0) ""
17