[php-src] PHP-8.4: Use FreeBSD 14.4 in GitHub actions
| From: | Sjoerd Langkemper via Ilija Tovilo | Date: | Sun, 18 Oct 2026 00:59:08 +0000 |
| Subject: | [php-src] PHP-8.4: Use FreeBSD 14.4 in GitHub actions | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142377@lists.php.net to get a copy of this message | ||
Author: Sjoerd Langkemper (Sjord)
Committer: Ilija Tovilo (iluuu1994)
Date: 2026-10-18T02:56:20+02:00
Commit: https://github.com/php/php-src/commit/810f0c6a81879cadf301cdbde3422a15a5ac33f5
Raw diff: https://github.com/php/php-src/commit/810f0c6a81879cadf301cdbde3422a15a5ac33f5.diff
Use FreeBSD 14.4 in GitHub actions
FreeBSD 13 is no longer supported.
Closes GH-24374
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/file/lstat_stat_variation18.phpt
M ext/standard/tests/file/lstat_stat_variation19.phpt
M ext/standard/tests/file/lstat_stat_variation20.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 588cb1fc0137..3cfdae761afa 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 90fcc9724ced..75d318dc6a7f 100644
--- a/ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
+++ b/ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
@@ -9,7 +9,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');
@@ -50,7 +52,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 2dade02f3fbe..640ecde439be 100644
--- a/ext/sockets/tests/socket_tcp_congestion.phpt
+++ b/ext/sockets/tests/socket_tcp_congestion.phpt
@@ -10,15 +10,14 @@ if (!defined('TCP_CONGESTION')) {
--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/file/lstat_stat_variation18.phpt
b/ext/standard/tests/file/lstat_stat_variation18.phpt
index e3c8386e70f1..9291de269396 100644
--- a/ext/standard/tests/file/lstat_stat_variation18.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation18.phpt
@@ -62,7 +62,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -118,7 +118,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
diff --git a/ext/standard/tests/file/lstat_stat_variation19.phpt
b/ext/standard/tests/file/lstat_stat_variation19.phpt
index 18ad03e52d29..24af43599efa 100644
--- a/ext/standard/tests/file/lstat_stat_variation19.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation19.phpt
@@ -63,7 +63,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -117,7 +117,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -173,7 +173,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -227,7 +227,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
diff --git a/ext/standard/tests/file/lstat_stat_variation20.phpt
b/ext/standard/tests/file/lstat_stat_variation20.phpt
index 5bff0456eba5..cfff4571ae16 100644
--- a/ext/standard/tests/file/lstat_stat_variation20.phpt
+++ b/ext/standard/tests/file/lstat_stat_variation20.phpt
@@ -72,7 +72,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -128,7 +128,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -182,7 +182,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
@@ -236,7 +236,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
- int(%d)
+ int(%i)
[7]=>
int(%d)
[8]=>
diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt
b/ext/standard/tests/strings/setlocale_variation2.phpt
index 6f62f71ac1f2..9c32e5ba82e2 100644
--- a/ext/standard/tests/strings/setlocale_variation2.phpt
+++ b/ext/standard/tests/strings/setlocale_variation2.phpt
@@ -5,6 +5,9 @@ Test setlocale() function : usage variations - Setting all available locales in
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip Not valid for windows');
}
+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");