From 9bda6a25a5a963f5e7786fe4d16e848d3786b1a2 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 3 Mar 2013 11:24:45 +0800 Subject: [PATCH] Fix test (skip on unable to create socket) --- ext/sockets/tests/mcast_ipv6_recv.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/sockets/tests/mcast_ipv6_recv.phpt b/ext/sockets/tests/mcast_ipv6_recv.phpt index 38390c025c..61d1e8458f 100644 --- a/ext/sockets/tests/mcast_ipv6_recv.phpt +++ b/ext/sockets/tests/mcast_ipv6_recv.phpt @@ -9,6 +9,9 @@ if (!defined('IPPROTO_IPV6')) { die('skip IPv6 not available.'); } $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP); +if ($s === false) { + die("skip unable to create socket"); +} $br = socket_bind($s, '::', 3000); /* On Linux, there is no route ff00::/8 by default on lo, which makes it * troublesome to send multicast traffic from lo, which we must since -- 2.40.0