xref: /PHP-7.4/ext/sockets/tests/bug63000.phpt (revision 2f700384)
1--TEST--
2Bug #63000: Multicast on OSX
3--SKIPIF--
4<?php
5if (!extension_loaded('sockets')) {
6    die('skip sockets extension not available.');
7}
8--FILE--
9<?php
10$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
11socket_bind($socket, '0.0.0.0', 31057);
12
13$so = socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, array(
14    "group" => '224.0.0.251',
15    "interface" => 0,
16));
17var_dump($so);
18--EXPECT--
19bool(true)
20