Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/freebsd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions ext/sockets/tests/socket_sentto_recvfrom_unix.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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; the result is discarded right away.
@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');
Expand Down Expand Up @@ -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!
Expand Down
11 changes: 5 additions & 6 deletions ext/sockets/tests/socket_tcp_congestion.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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 hard-coded names such as "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'];
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/tests/file/lstat_stat_variation18.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -118,7 +118,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down
8 changes: 4 additions & 4 deletions ext/standard/tests/file/lstat_stat_variation19.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -117,7 +117,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -173,7 +173,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -227,7 +227,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down
8 changes: 4 additions & 4 deletions ext/standard/tests/file/lstat_stat_variation20.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -128,7 +128,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -182,7 +182,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down Expand Up @@ -236,7 +236,7 @@ array(26) {
[5]=>
int(%d)
[6]=>
int(%d)
int(%i)
[7]=>
int(%d)
[8]=>
Expand Down
3 changes: 3 additions & 0 deletions ext/standard/tests/strings/setlocale_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Loading