--TEST-- sendmsg()/recvmsg(): test ability to receive multiple messages (WIN32) --SKIPIF-- --FILE-- [ "addr" => "::1", "port" => 3003], "iov" => ["test ", "thing", "\n"], "control" => [[ "level" => IPPROTO_IPV6, "type" => IPV6_PKTINFO, "data" => [ 'addr' => '::1', 'ifindex' => 1 /* we're assuming loopback is 1. Is this a safe assumption? */ ], ]] ], 0); var_dump($r); checktimeout($s, 500); $data = [ "name" => ["family" => AF_INET6, "addr" => "::1"], "buffer_size" => 2000, "controllen" => socket_cmsg_space(IPPROTO_IPV6, IPV6_PKTINFO) + socket_cmsg_space(IPPROTO_IPV6, IPV6_TCLASS), ]; if (!socket_recvmsg($s, $data, 0)) die("recvmsg"); print_r($data); --EXPECTF-- creating send socket resource(%d) of type (Socket) bool(true) creating receive socket resource(%d) of type (Socket) bool(true) int(11) Array ( [name] => Array ( [family] => %d [addr] => ::1 [port] => 7003 [flowinfo] => 0 [scope_id] => 0 ) [control] => Array ( [0] => Array ( [level] => %d [type] => %d [data] => Array ( [addr] => ::1 [ifindex] => %d ) ) [1] => Array ( [level] => %d [type] => %d [data] => 0 ) ) [iov] => Array ( [0] => test thing ) [flags] => 0 )