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:31330'); 7var_dump(stream_get_meta_data($tcp_socket)); 8fclose($tcp_socket); 9 10?> 11--EXPECTF-- 12array(7) { 13 ["timed_out"]=> 14 bool(false) 15 ["blocked"]=> 16 bool(true) 17 ["eof"]=> 18 bool(false) 19 ["stream_type"]=> 20 string(%d) "tcp_socke%s" 21 ["mode"]=> 22 string(2) "r+" 23 ["unread_bytes"]=> 24 int(0) 25 ["seekable"]=> 26 bool(false) 27} 28