Skip to content

Commit

Permalink
Add ipv6 skipif to test
Browse files Browse the repository at this point in the history
This was done for the -unix variant, but not the (formerly
windows-only?) main test.
  • Loading branch information
nikic committed Aug 5, 2020
1 parent 34e7d78 commit 58ab491
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ sendmsg()/recvmsg(): test ability to receive multiple messages (WIN32)
<?php
if (!extension_loaded('sockets'))
die('skip sockets extension not available.');

require 'ipv6_skipif.inc';

if (!defined('IPPROTO_IPV6'))
die('skip IPv6 not available.');
/* Windows supports IPV6_RECVTCLASS and is able to receive the tclass via
* WSARecvMsg (though only the top 6 bits seem to reported), but WSASendMsg
* does not accept IPV6_TCLASS messages. We still test that sendmsg() works
* corectly by sending an IPV6_PKTINFO message that will have no effect */
* does not accept IPV6_TCLASS messages. We still test that sendmsg() works
* correctly by sending an IPV6_PKTINFO message that will have no effect */
?>
--FILE--
<?php
include __DIR__."/mcast_helpers.php.inc";
Expand Down

0 comments on commit 58ab491

Please sign in to comment.