1--TEST--
2Test socket_addrinfo_lookup()
3--EXTENSIONS--
4sockets
5--FILE--
6<?php
7try {
8    $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
9        'ai_family' => AF_INET,
10        'ai_socktype' => SOCK_DGRAM,
11        'invalid' => null,
12    ));
13    var_dump($addrinfo[0]);
14} catch (\ValueError $e) {
15    echo $e->getMessage(), \PHP_EOL;
16}
17?>
18--EXPECT--
19socket_addrinfo_lookup(): Argument #3 ($hints) must only contain array keys "ai_flags", "ai_socktype", "ai_protocol", or "ai_family"
20