[php-src] master: Merge branch 'PHP-8.6'
| From: | Ilija Tovilo | Date: | Sun, 18 Oct 2026 00:59:14 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142376@lists.php.net to get a copy of this message | ||
Author: Ilija Tovilo (iluuu1994)
Date: 2026-10-18T02:58:15+02:00
Commit: https://github.com/php/php-src/commit/17b6575a3dc4965e0e3fb40046e4575663a76863
Raw diff: https://github.com/php/php-src/commit/17b6575a3dc4965e0e3fb40046e4575663a76863.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
Use FreeBSD 14.4 in GitHub actions
Changed paths:
M .github/actions/freebsd/action.yml
M ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
M ext/sockets/tests/socket_tcp_congestion.phpt
M ext/standard/tests/strings/setlocale_variation2.phpt
Diff:
diff --git a/.github/actions/freebsd/action.yml b/.github/actions/freebsd/action.yml
index 197362d9f52b..423107a0f896 100644
--- a/.github/actions/freebsd/action.yml
+++ b/.github/actions/freebsd/action.yml
@@ -12,7 +12,7 @@ runs:
- name: FreeBSD
uses: vmactions/freebsd-vm@v1
with:
- release: '13.5'
+ release: '14.4'
usesh: true
copyback: false
disable-cache: true
diff --git a/ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
b/ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
index 72594f0506b9..66c26112b44d 100644
--- a/ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
+++ b/ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
@@ -10,7 +10,9 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
?>
--FILE--
<?php
- $socket = socket_create(AF_UNIX, SOCK_DGRAM, SOL_UDP); // cause warning
+ // Whether this conflicting combination emits a warning is platform-dependent
+ // (FreeBSD 14 accepts it), so suppress it.
+ @socket_create(AF_UNIX, SOCK_DGRAM, SOL_UDP);
$socket = socket_create(AF_UNIX, SOCK_DGRAM, 0);
if (!$socket) {
die('Unable to create AF_UNIX socket');
@@ -51,7 +53,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
@unlink($address);
?>
--EXPECTF--
-Warning: socket_create(): Unable to create socket [%d]: Protocol not supported in %s on line %d
bool(false)
bool(false)
Received Ping!
diff --git a/ext/sockets/tests/socket_tcp_congestion.phpt
b/ext/sockets/tests/socket_tcp_congestion.phpt
index 45853f6bf8ce..1a28d35b682d 100644
--- a/ext/sockets/tests/socket_tcp_congestion.phpt
+++ b/ext/sockets/tests/socket_tcp_congestion.phpt
@@ -14,15 +14,14 @@ if (PHP_OS_FAMILY === 'Solaris' ) {
--FILE--
<?php
-if (str_contains(PHP_OS, 'Linux')) {
- $algo = 'cubic';
-} else {
- $algo = 'newreno';
-}
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (!$socket) die ("socket failed");
$r = socket_get_option($socket, SOL_TCP, TCP_CONGESTION);
-echo "current tcp congestion algo " . $r['name'] . "\n";
+/* Use the algorithm currently in effect: it is guaranteed to be available and
+ * allowed for unprivileged accounts, unlike "newreno" which is no longer loaded
+ * by default on FreeBSD 14. */
+$algo = $r['name'];
+echo "current tcp congestion algo " . $algo . "\n";
var_dump(socket_set_option($socket, SOL_TCP, TCP_CONGESTION, $algo));
$r = socket_get_option($socket, SOL_TCP, TCP_CONGESTION);
echo "new tcp congestion algo " . $r['name'];
diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt
b/ext/standard/tests/strings/setlocale_variation2.phpt
index c6d44c4a54c2..4186603bbb90 100644
--- a/ext/standard/tests/strings/setlocale_variation2.phpt
+++ b/ext/standard/tests/strings/setlocale_variation2.phpt
@@ -8,6 +8,9 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
if (PHP_OS_FAMILY === 'Solaris') {
die("skip Some locales on Solaris (e.g. iso_8859_1) are incomplete, cannot test
LC_ALL");
}
+if (PHP_OS === 'FreeBSD') {
+ die("skip Some locales listed by locale -a on FreeBSD (e.g. hr_HR.ISO8859-2) are
incomplete, cannot test LC_ALL");
+}
exec("locale -a", $output, $exit_code);
if ($exit_code !== 0) {
die("skip locale -a not available");