diff options
author | Xinchen Hui <laruence@php.net> | 2013-03-05 17:18:13 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2013-03-05 17:18:13 +0800 |
commit | 082741814adc343c7f964e42a5a544516d884d75 (patch) | |
tree | 2195ba6211215727f843dc8cfa4fb2dcb3ce75fb /ext/sockets | |
parent | e5d0dc24d268cbf2aabdb9e48135385f01b21765 (diff) | |
download | php-git-082741814adc343c7f964e42a5a544516d884d75.tar.gz |
skip if no IPv6 support
Diffstat (limited to 'ext/sockets')
-rw-r--r-- | ext/sockets/tests/socket_recvmsg.phpt | 5 | ||||
-rw-r--r-- | ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt | 5 | ||||
-rw-r--r-- | ext/sockets/tests/socket_set_option_in6_pktinfo.phpt | 3 |
3 files changed, 11 insertions, 2 deletions
diff --git a/ext/sockets/tests/socket_recvmsg.phpt b/ext/sockets/tests/socket_recvmsg.phpt index cbdb5280c2..a2204112b3 100644 --- a/ext/sockets/tests/socket_recvmsg.phpt +++ b/ext/sockets/tests/socket_recvmsg.phpt @@ -5,13 +5,16 @@ recvmsg(): basic test if (!extension_loaded('sockets')) { die('skip sockets extension not available.'); } + +require 'ipv6_skipif.inc'; + if (!defined('IPPROTO_IPV6')) { die('skip IPv6 not available.'); } if (!defined('IPV6_RECVPKTINFO')) { die('skip IPV6_RECVPKTINFO not available.'); } - +?> --FILE-- <?php include __DIR__."/mcast_helpers.php.inc"; diff --git a/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt b/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt index 44e25f021a..6b46f33715 100644 --- a/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt +++ b/ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt @@ -4,6 +4,9 @@ sendmsg()/recvmsg(): test ability to receive multiple messages <?php if (!extension_loaded('sockets')) die('skip sockets extension not available.'); + +require 'ipv6_skipif.inc'; + if (!defined('IPPROTO_IPV6')) die('skip IPv6 not available.'); if (substr(PHP_OS, 0, 3) == 'WIN') @@ -15,7 +18,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') if (!defined('IPV6_RECVPKTINFO')) { die('skip IPV6_RECVPKTINFO not available.'); } - +?> --FILE-- <?php include __DIR__."/mcast_helpers.php.inc"; diff --git a/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt b/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt index aa6d5ae062..75019cafac 100644 --- a/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt +++ b/ext/sockets/tests/socket_set_option_in6_pktinfo.phpt @@ -5,6 +5,9 @@ socket_set_option() with IPV6_PKTINFO if (!extension_loaded('sockets')) { die('skip sockets extension not available.'); } + +require 'ipv6_skipif.inc'; + if (!defined('IPPROTO_IPV6')) { die('skip IPv6 not available.'); } |