1--TEST-- 2Test socket_addrinfo_lookup() 3--SKIPIF-- 4<?php 5if (!extension_loaded('sockets')) { 6 die('SKIP The sockets extension is not loaded.'); 7} 8--FILE-- 9<?php 10$addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array( 11 'ai_family' => AF_INET, 12 'ai_socktype' => SOCK_DGRAM, 13 'invalid' => null, 14)); 15var_dump($addrinfo[0]); 16echo "Done"; 17--EXPECTF-- 18Notice: socket_addrinfo_lookup(): Unknown hint invalid in %ssocket_addrinfo_lookup.php on line %d 19resource(%d) of type (AddressInfo) 20Done 21