diff options
author | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2012-11-06 11:25:23 +0100 |
---|---|---|
committer | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2013-02-02 16:38:07 +0100 |
commit | 3e515a2fd93204594c80ad2379f42fbb2db18d78 (patch) | |
tree | 4d91508cb384c6967cff4b11b6b51bd885b65d42 /ext/sockets/tests | |
parent | 5bf7b08efd691780f421e0b4f176404fe3a80b2c (diff) | |
download | php-git-3e515a2fd93204594c80ad2379f42fbb2db18d78.tar.gz |
Fix mcast_ipv6_send test
Diffstat (limited to 'ext/sockets/tests')
-rw-r--r-- | ext/sockets/tests/mcast_ipv6_send.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/tests/mcast_ipv6_send.phpt b/ext/sockets/tests/mcast_ipv6_send.phpt index b8d38bf68f..f75bb09903 100644 --- a/ext/sockets/tests/mcast_ipv6_send.phpt +++ b/ext/sockets/tests/mcast_ipv6_send.phpt @@ -9,8 +9,8 @@ if (!defined('IPPROTO_IPV6')) { die('skip IPv6 not available.');
}
$level = IPPROTO_IPV6;
-$s = socket_create($domain, SOCK_DGRAM, SOL_UDP) or die("skip Can not create socket");
-if (socket_set_option($s, $level, IP_MULTICAST_IF, 1) === false) {
+$s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("skip Can not create socket");
+if (socket_set_option($s, $level, IPV6_MULTICAST_IF, 1) === false) {
die("skip interface 1 either doesn't exist or has no ipv6 address");
}
--FILE--
|