diff options
-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.'); } |