From cc8739cfb90abd957d4fa7554e423da308a998c5 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 12 Oct 2019 16:48:08 +0200 Subject: [PATCH] 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. --- ext/sockets/tests/mcast_ipv4_recv.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', )); -- 2.50.1