--TEST-- Testing stream_get_meta_data() "blocked" field on a udp socket --FILE-- --EXPECTF-- array(8) { ["timed_out"]=> bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(false) ["stream_type"]=> string(%d) "tcp_socke%s" ["mode"]=> string(2) "r+" ["unread_bytes"]=> int(0) ["seekable"]=> bool(false) ["uri"]=> string(21) "tcp://127.0.0.1:31333" } Set blocking to false: bool(true) array(8) { ["timed_out"]=> bool(false) ["blocked"]=> bool(false) ["eof"]=> bool(false) ["stream_type"]=> string(%d) "tcp_socke%s" ["mode"]=> string(2) "r+" ["unread_bytes"]=> int(0) ["seekable"]=> bool(false) ["uri"]=> string(21) "tcp://127.0.0.1:31333" } Set blocking to true: bool(true) array(8) { ["timed_out"]=> bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(false) ["stream_type"]=> string(%d) "tcp_socke%s" ["mode"]=> string(2) "r+" ["unread_bytes"]=> int(0) ["seekable"]=> bool(false) ["uri"]=> string(21) "tcp://127.0.0.1:31333" }