[php-src] master: Merge branch 'PHP-8.5'

From: Date: Tue, 22 Sep 2026 08:40:55 +0000
Subject: [php-src] master: Merge branch 'PHP-8.5'
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141370@lists.php.net to get a copy of this message
Author: David Carlier (devnexen) Date: 2026-09-22T09:40:10+01:00 Commit: https://github.com/php/php-src/commit/fdc4aa92f4e730c4158ef09c047316cbc983d7c9 Raw diff: https://github.com/php/php-src/commit/fdc4aa92f4e730c4158ef09c047316cbc983d7c9.diff Merge branch 'PHP-8.5' * PHP-8.5: Fix GH-11662: Skip multicast test when unavailable Changed paths: M ext/sockets/tests/bug63000.phpt Diff: diff --git a/ext/sockets/tests/bug63000.phpt b/ext/sockets/tests/bug63000.phpt index 04265638a260..99723d68cdca 100644 --- a/ext/sockets/tests/bug63000.phpt +++ b/ext/sockets/tests/bug63000.phpt @@ -2,6 +2,23 @@ Bug #63000: Multicast on OSX --EXTENSIONS-- sockets +--SKIPIF-- +<?php +$socket = @socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); +if ($socket === false) { + die('skip unable to create IPv4 UDP socket'); +} +$so = @socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, [ + 'group' => '224.0.0.251', + 'interface' => 0, +]); +if ($so === false) { + $errno = socket_last_error($socket); + if (in_array($errno, [SOCKET_ENODEV, SOCKET_ENXIO, SOCKET_EADDRNOTAVAIL], true)) { + die('skip no multicast-capable interface: ' . socket_strerror($errno)); + } +} +?> --FILE-- <?php $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);

« previous php.cvs (#141370) next »