Commit:    9bda6a25a5a963f5e7786fe4d16e848d3786b1a2
Author:    Xinchen Hui <larue...@php.net>         Sun, 3 Mar 2013 11:24:45 +0800
Parents:   d24ac6953ec8ca147243363eeacc8772d265b6cc
Branches:  PHP-5.4

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=9bda6a25a5a963f5e7786fe4d16e848d3786b1a2

Log:
Fix test (skip on unable to create socket)

Changed paths:
  M  ext/sockets/tests/mcast_ipv6_recv.phpt


Diff:
diff --git a/ext/sockets/tests/mcast_ipv6_recv.phpt 
b/ext/sockets/tests/mcast_ipv6_recv.phpt
index 38390c0..61d1e84 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


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to