[php-src] PHP-8.6: Merge branch 'PHP-8.3' into PHP-8.4

From: Date: Sun, 18 Oct 2026 00:59:09 +0000
Subject: [php-src] PHP-8.6: Merge branch 'PHP-8.3' into PHP-8.4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142375@lists.php.net to get a copy of this message
Author: Ilija Tovilo (iluuu1994) Date: 2026-10-18T02:57:32+02:00 Commit: https://github.com/php/php-src/commit/d4de18c1b291c44dd8dd62b754c73e428932e683 Raw diff: https://github.com/php/php-src/commit/d4de18c1b291c44dd8dd62b754c73e428932e683.diff Merge branch 'PHP-8.3' into PHP-8.4 * PHP-8.3: 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/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 fa9f5ebfaf88..fcc1be64b575 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 56b587618548..a048c3429f68 100644 --- a/ext/sockets/tests/socket_tcp_congestion.phpt +++ b/ext/sockets/tests/socket_tcp_congestion.phpt @@ -11,15 +11,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");

« previous php.cvs (#142375) next »