From: Christoph M. Becker Date: Sat, 12 Oct 2019 14:48:08 +0000 (+0200) Subject: Fix potentially borked test case X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc8739cfb90abd957d4fa7554e423da308a998c5;p=php Fix potentially borked test case If interface 'lo' is not available, `socket_set_option()` may warn, which would cause the test to be marked as borked. Thus we silence the function call. --- diff --git a/ext/sockets/tests/mcast_ipv4_recv.phpt b/ext/sockets/tests/mcast_ipv4_recv.phpt index f56b21a2fa..aef566e915 100644 --- a/ext/sockets/tests/mcast_ipv4_recv.phpt +++ b/ext/sockets/tests/mcast_ipv4_recv.phpt @@ -8,7 +8,7 @@ if (!extension_loaded('sockets')) { if (getenv('SKIP_ONLINE_TESTS')) die('skip online test'); $s = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); $br = socket_bind($s, '0.0.0.0', 3000); -$so = socket_set_option($s, IPPROTO_IP, MCAST_JOIN_GROUP, array( +$so = @socket_set_option($s, IPPROTO_IP, MCAST_JOIN_GROUP, array( "group" => '224.0.0.23', "interface" => 'lo', ));