[php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5
| From: | David Carlier | Date: | Tue, 22 Sep 2026 08:40:53 +0000 |
| Subject: | [php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141368@lists.php.net to get a copy of this message | ||
Author: David Carlier (devnexen)
Date: 2026-09-22T09:40:06+01:00
Commit: https://github.com/php/php-src/commit/247ae249b1b2c2b99f9af8803a170f0d464e1f1f
Raw diff: https://github.com/php/php-src/commit/247ae249b1b2c2b99f9af8803a170f0d464e1f1f.diff
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
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);