From: Xinchen Hui Date: Sun, 3 Mar 2013 03:24:45 +0000 (+0800) Subject: Fix test (skip on unable to create socket) X-Git-Tag: php-5.5.0alpha6~6^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bda6a25a5a963f5e7786fe4d16e848d3786b1a2;p=php Fix test (skip on unable to create socket) --- 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