1--TEST--
2AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES are deprecated
3--SKIPIF--
4<?php
5if (!extension_loaded('sockets')) die('skip The sockets extension is not loaded');
6if (!defined('AI_IDN_ALLOW_UNASSIGNED')) die('skip AI_IDN_ALLOW_UNASSIGNED not defined');
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    'ai_flags' => AI_IDN_ALLOW_UNASSIGNED,
14));
15var_dump(socket_addrinfo_connect($addrinfo[0]));
16echo "Done";
17--EXPECTF--
18Deprecated: socket_addrinfo_lookup(): AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES are deprecated in %s on line %d
19resource(%d) of type (Socket)
20Done
21