blob: 40a746bdb932f8e367e35b0f6df19f638e65cc52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Test socket_addrinfo_bind()
--SKIPIF--
<?php
if (!extension_loaded('sockets')) {
die('SKIP The sockets extension is not loaded.');
}
--FILE--
<?php
$addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
'ai_family' => AF_INET,
'ai_socktype' => SOCK_DGRAM,
));
var_dump(socket_addrinfo_bind($addrinfo[0]));
echo "Done";
--EXPECT--
object(Socket)#2 (0) {
}
Done
|