Skip to content

Commit 25c0993

Browse files
committed
Backport CI fixes to security branches
Closes GH-16469 Working towards GH-16286 commit e0db221143b808d97bc3a44e9f0968c6308794b4 Author: Ilija Tovilo <ilija.tovilo@me.com> Date: Fri Oct 25 22:48:20 2024 +0200 Move CFLAGS into ./configure command for consistency commit 8ad67768250d181cd7fef30e0c866625bbd8ac94 Author: Ilija Tovilo <ilija.tovilo@me.com> Date: Fri Oct 25 22:47:03 2024 +0200 Also upgrade nightly to macOS 13 commit 58a88cc Author: Ilija Tovilo <ilija.tovilo@me.com> Date: Wed Oct 23 19:07:59 2024 +0200 Fix call to dc[n]gettext in tests with 0 $category This causes a segfault on PHP-8.1 commit 611af05 Author: Ilija Tovilo <ilija.tovilo@me.com> Date: Fri Dec 8 13:36:52 2023 +0100 [skip ci] Skip intermittently failing curl test on macOS The test fails with "CURL ERROR: 56". I will create an issue for it shortly. commit ec74517 Author: Ilija Tovilo <ilija.tovilo@me.com> Date: Wed Oct 23 19:05:32 2024 +0200 Backport parts of 9999a0c for gettext See 9999a0c commit 5ce7034 Author: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun Jul 28 14:34:26 2024 +0200 Fix CI failure on macOS after Curl update commit 714a3e7 Author: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat Jul 27 16:09:50 2024 +0200 Fix CI failure after Curl update (#15124) commit 4f2eb92 Author: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Thu May 23 22:20:37 2024 +0200 Fix GH-14307: Test curl_basic_024 fails with curl 8.8.0 Curl changed the behaviour, from the changelog: - lib: make protocol handlers store scheme name lowercase curl/curl@c294f9c From the docs: "The returned scheme might be upper or lowercase. Do comparisons case insensitively." Closes GH-14312. commit 251195b Author: Ayesh Karunaratne <ayesh@aye.sh> Date: Thu Feb 1 02:03:55 2024 +0700 ext/curl: Fix failing tests due to string changes in libcurl 8.6.0 Upstream libcurl 8.6.0 contains a change[^1] that caused a test failure. This fixes it by updating the test's `EXPECTF` to use a regex to account for both string patterns. [^1]: curl/curl@45cf4755e71f#diff-a8a54563608f8155973318f4ddb61d7328dab512b8ff2b5cc48cc76979d4204cL1683 Closes GH-13293. commit fc5d83f Author: Christoph M. Becker <cmbecker69@gmx.de> Date: Wed Oct 16 22:46:20 2024 +0200 Prepare for necessary move to macOS 13 GH will remove macOS 12 runner images as of December 3rd, so we prepare for that. Besides the obvious need to change the runner, we also suppress a couple of warnings, because otherwise the build would fail due to `-Werror`.
1 parent 2c40762 commit 25c0993

File tree

9 files changed

+16
-11
lines changed

9 files changed

+16
-11
lines changed

.github/actions/configure-macos/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"
2121
./buildconf --force
2222
./configure \
23+
CFLAGS="-Wno-strict-prototypes -Wno-unused-but-set-variable -Wno-single-bit-bitfield-constant-conversion" \
2324
--enable-option-checking=fatal \
2425
--prefix=/usr/local \
2526
--enable-fpm \

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
debug: [true, false]
200200
zts: [true, false]
201201
name: "${{ matrix.branch.name }}_MACOS_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
202-
runs-on: macos-12
202+
runs-on: macos-13
203203
steps:
204204
- name: git checkout
205205
uses: actions/checkout@v4

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
uses: ./.github/actions/verify-generated-files
9898
MACOS_DEBUG_NTS:
9999
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
100-
runs-on: macos-12
100+
runs-on: macos-13
101101
steps:
102102
- name: git checkout
103103
uses: actions/checkout@v4

Zend/tests/arginfo_zpp_mismatch.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ function skipFunction($function): bool {
2929
|| $function === 'posix_setrlimit'
3030
|| $function === 'sapi_windows_generate_ctrl_event'
3131
|| $function === 'imagegrabscreen'
32+
// PHP-8.1 only
33+
|| $function === 'dcgettext'
34+
|| $function === 'dcngettext'
3235
) {
3336
return true;
3437
}

ext/curl/tests/bug77946.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ curl_multi_close($mh);
3434
--EXPECTF--
3535
int(1)
3636
int(1)
37-
string(%d) "Protocol %Sunknown%S not supported or disabled in libcurl"
37+
string(%d) "Protocol %Sunknown%S %rnot supported( or disabled in libcurl)?%r"

ext/curl/tests/curl_basic_024.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var_dump(0 === curl_getinfo($ch, CURLINFO_PROXY_SSL_VERIFYRESULT));
2525
var_dump(curl_getinfo($ch, CURLINFO_SCHEME));
2626
curl_close($ch);
2727
?>
28-
--EXPECT--
28+
--EXPECTF--
2929
bool(true)
3030
bool(true)
31-
string(4) "HTTP"
31+
string(4) "%r(HTTP|http)%r"

ext/curl/tests/curl_setopt_ssl.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if (!function_exists("proc_open")) die("skip no proc_open");
88
exec('openssl version', $out, $code);
99
if ($code > 0) die("skip couldn't locate openssl binary");
1010
if (PHP_OS_FAMILY === 'Windows') die('skip not for Windows');
11+
if (PHP_OS_FAMILY === 'Darwin') die('skip Fails intermittently on macOS');
1112
$curl_version = curl_version();
1213
if ($curl_version['version_number'] < 0x074700) {
1314
die("skip: blob options not supported for curl < 7.71.0");

ext/gettext/tests/dcngettext.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ if (!function_exists("dcngettext")) die("skip dcngettext() doesn't exist");
1111

1212
var_dump(dcngettext(1,1,1,1,1));
1313
var_dump(dcngettext("test","test","test",1,1));
14-
var_dump(dcngettext("test","test","test",0,0));
14+
var_dump(dcngettext("test","test","test",0,1));
1515
var_dump(dcngettext("test","test","test",-1,-1));
1616
var_dump(dcngettext("","","",1,1));
17-
var_dump(dcngettext("","","",0,0));
17+
var_dump(dcngettext("","","",0,1));
1818

1919
echo "Done\n";
2020
?>

ext/standard/tests/file/bug52820.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ echo "\nDone.\n";
4646
temp stream \(close after\):
4747
About to rewind!
4848
(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
49-
\* Closing connection( -?\d+)?
49+
\* [Cc]losing connection( #?-?\d+)?
5050

5151
memory stream \(close after\):
5252
About to rewind!
5353
(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
54-
\* Closing connection( -?\d+)?
54+
\* [Cc]losing connection( #?-?\d+)?
5555

5656
temp stream \(leak\):
5757
About to rewind!
5858
(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
59-
\* Closing connection( -?\d+)?
59+
\* [Cc]losing connection( #?-?\d+)?
6060

6161
memory stream \(leak\):
6262
About to rewind!
6363
(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/
64-
\* Closing connection( -?\d+)?
64+
\* [Cc]losing connection( #?-?\d+)?
6565

6666
Done\.

0 commit comments

Comments
 (0)