From: Gustavo Lopes Date: Tue, 6 Nov 2012 10:25:23 +0000 (+0100) Subject: Fix mcast_ipv6_send test X-Git-Tag: php-5.5.0alpha5~43^2~11^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e515a2fd93204594c80ad2379f42fbb2db18d78;p=php Fix mcast_ipv6_send test --- 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--