Skip to content

Commit 029e833

Browse files
committed
Merge branch 'master' into wrong-param-count
2 parents 353b35c + d3c5163 commit 029e833

File tree

550 files changed

+20334
-24544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

550 files changed

+20334
-24544
lines changed

.github/CODEOWNERS

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616

1717
/.github @TimWolla
1818
/build/gen_stub.php @kocsismate
19-
/ext/bcmath @nielsdos @SakiTakamachi
19+
/ext/bcmath @ndossche @SakiTakamachi
2020
/ext/curl @adoy
2121
/ext/date @derickr
2222
/ext/dba @Girgias
23-
/ext/dom @nielsdos
23+
/ext/dom @ndossche
2424
/ext/ffi @dstogov
2525
/ext/gd @devnexen
2626
/ext/gettext @devnexen
2727
/ext/gmp @Girgias
2828
/ext/intl @devnexen
2929
/ext/json @bukka
30-
/ext/lexbor @kocsismate @nielsdos
31-
/ext/libxml @nielsdos
30+
/ext/lexbor @kocsismate @ndossche
31+
/ext/libxml @ndossche
3232
/ext/mbstring @alexdowad @youkidearitai
3333
/ext/mysqli @bukka @kamil-tekiela
3434
/ext/mysqlnd @bukka @kamil-tekiela @SakiTakamachi
@@ -47,16 +47,17 @@
4747
/ext/random @TimWolla @zeriyoshi
4848
/ext/reflection @DanielEScherzer
4949
/ext/session @Girgias
50-
/ext/simplexml @nielsdos
51-
/ext/soap @nielsdos
50+
/ext/simplexml @ndossche
51+
/ext/soap @ndossche
5252
/ext/sockets @devnexen
5353
/ext/spl @Girgias
5454
/ext/standard @bukka
55+
/ext/tidy @ndossche
5556
/ext/uri @kocsismate @TimWolla
56-
/ext/xml @nielsdos
57-
/ext/xmlreader @nielsdos
58-
/ext/xmlwriter @nielsdos
59-
/ext/xsl @nielsdos
57+
/ext/xml @ndossche
58+
/ext/xmlreader @ndossche
59+
/ext/xmlwriter @ndossche
60+
/ext/xsl @ndossche
6061
/main @bukka
6162
/sapi/fpm @bukka
6263
/Zend/Optimizer @dstogov

.github/actions/notify-slack/action.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/nightly_matrix.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function get_current_version(): array {
4949

5050
$trigger = $argv[1] ?? 'schedule';
5151
$attempt = (int) ($argv[2] ?? 1);
52-
$monday = date('w', time()) === '1';
53-
$discard_cache = $monday
52+
$sunday = date('w', time()) === '0';
53+
$discard_cache = $sunday
5454
|| ($trigger === 'schedule' && $attempt !== 1)
5555
|| $trigger === 'workflow_dispatch';
5656
if ($discard_cache) {

.github/scripts/windows/test_task.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ if %errorlevel% neq 0 exit /b 3
3636
rem setup PostgreSQL related exts
3737
set PGUSER=postgres
3838
set PGPASSWORD=Password12!
39-
rem set PGSQL_TEST_CONNSTR=host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!
40-
echo ^<?php $conn_str = "host=127.0.0.1 dbname=test port=5432 user=%PGUSER% password=%PGPASSWORD%"; ?^> >> "./ext/pgsql/tests/config.inc"
39+
set PGSQL_TEST_CONNSTR=host=127.0.0.1 dbname=test port=5432 user=%PGUSER% password=%PGPASSWORD%
4140
set PDO_PGSQL_TEST_DSN=pgsql:host=127.0.0.1 port=5432 dbname=test user=%PGUSER% password=%PGPASSWORD%
4241
set TMP_POSTGRESQL_BIN=%PGBIN%
4342
"%TMP_POSTGRESQL_BIN%\createdb.exe" test
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Nightly results
2+
on:
3+
workflow_run:
4+
workflows:
5+
- Nightly
6+
types:
7+
- completed
8+
jobs:
9+
on-failure:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.repository == 'php/php-src' && github.event.workflow_run.conclusion == 'failure' }}
12+
steps:
13+
- run: |
14+
export DEBIAN_FRONTEND=noninteractive
15+
sudo apt-get install -y curl
16+
curl -X POST -H 'Content-type: application/json' --data '{"attachments": [{"text": "Job(s) in *nightly* failed", "footer": "<${{ github.event.workflow_run.html_url }}|View Run>", "color": "danger", "mrkdwn_in": ["text"]}]}' ${{ secrets.ACTION_MONITORING_SLACK }}

.github/workflows/nightly.yml

Lines changed: 9 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
libmysqlclient_with_mysqli:
1515
required: true
1616
type: boolean
17+
macos_arm64_version:
18+
required: true
19+
type: string
1720
run_alpine:
1821
required: true
1922
type: boolean
@@ -135,12 +138,6 @@ jobs:
135138
-d opcache.enable_cli=1
136139
- name: Extra tests
137140
uses: ./.github/actions/extra-tests
138-
- name: Notify Slack
139-
if: failure()
140-
uses: ./.github/actions/notify-slack
141-
with:
142-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
143-
144141
LINUX_X64:
145142
services:
146143
mysql:
@@ -269,11 +266,6 @@ jobs:
269266
uses: ./.github/actions/extra-tests
270267
- name: Verify generated files are up to date
271268
uses: ./.github/actions/verify-generated-files
272-
- name: Notify Slack
273-
if: failure()
274-
uses: ./.github/actions/notify-slack
275-
with:
276-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
277269
LINUX_X32:
278270
strategy:
279271
fail-fast: false
@@ -355,22 +347,17 @@ jobs:
355347
-d opcache.enable_cli=1
356348
- name: Extra tests
357349
uses: ./.github/actions/extra-tests
358-
- name: Notify Slack
359-
if: failure()
360-
uses: ./.github/actions/notify-slack
361-
with:
362-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
363350
MACOS:
364351
strategy:
365352
fail-fast: false
366353
matrix:
367354
debug: [true, false]
368355
zts: [true, false]
369-
os: ['13', '14']
356+
arch: ['X64', 'ARM64']
370357
exclude:
371-
- os: ${{ !inputs.run_macos_arm64 && '14' || '*never*' }}
372-
name: "MACOS_${{ matrix.os == '13' && 'X64' || 'ARM64' }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
373-
runs-on: macos-${{ matrix.os }}
358+
- arch: ${{ !inputs.run_macos_arm64 && 'ARM64' || '*never*' }}
359+
name: "MACOS_${{ matrix.arch }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
360+
runs-on: macos-${{ matrix.arch == 'X64' && '15-intel' || inputs.macos_arm64_version }}
374361
steps:
375362
- name: git checkout
376363
uses: actions/checkout@v5
@@ -393,7 +380,7 @@ jobs:
393380
- name: Test
394381
uses: ./.github/actions/test-macos
395382
- name: Test Tracing JIT
396-
if: matrix.os != '14' || !matrix.zts
383+
if: matrix.arch == 'X64' || !matrix.zts
397384
uses: ./.github/actions/test-macos
398385
with:
399386
jitType: tracing
@@ -405,7 +392,7 @@ jobs:
405392
runTestsParameters: >-
406393
-d opcache.enable_cli=1
407394
- name: Test Function JIT
408-
if: matrix.os != '14' || !matrix.zts
395+
if: matrix.arch == 'X64' || !matrix.zts
409396
uses: ./.github/actions/test-macos
410397
with:
411398
jitType: function
@@ -415,11 +402,6 @@ jobs:
415402
uses: ./.github/actions/extra-tests
416403
- name: Verify generated files are up to date
417404
uses: ./.github/actions/verify-generated-files
418-
- name: Notify Slack
419-
if: failure()
420-
uses: ./.github/actions/notify-slack
421-
with:
422-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
423405
COVERAGE_DEBUG_NTS:
424406
if: inputs.branch == 'master'
425407
services:
@@ -480,11 +462,6 @@ jobs:
480462
fail_ci_if_error: true
481463
token: ${{ secrets.CODECOV_TOKEN }}
482464
verbose: true
483-
- name: Notify Slack
484-
if: failure()
485-
uses: ./.github/actions/notify-slack
486-
with:
487-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
488465
COMMUNITY:
489466
strategy:
490467
fail-fast: false
@@ -671,11 +648,6 @@ jobs:
671648
if [ $EXIT_CODE -gt 128 ]; then
672649
exit 1
673650
fi
674-
- name: Notify Slack
675-
if: failure()
676-
uses: ./.github/actions/notify-slack
677-
with:
678-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
679651
OPCACHE_VARIATION:
680652
services:
681653
mysql:
@@ -757,11 +729,6 @@ jobs:
757729
-d opcache.file_cache_only=1
758730
- name: Verify generated files are up to date
759731
uses: ./.github/actions/verify-generated-files
760-
- name: Notify Slack
761-
if: failure()
762-
uses: ./.github/actions/notify-slack
763-
with:
764-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
765732
MSAN:
766733
name: MSAN
767734
runs-on: ubuntu-${{ inputs.ubuntu_version }}
@@ -848,11 +815,6 @@ jobs:
848815
-d opcache.enable_cli=1
849816
- name: Verify generated files are up to date
850817
uses: ./.github/actions/verify-generated-files
851-
- name: Notify Slack
852-
if: failure()
853-
uses: ./.github/actions/notify-slack
854-
with:
855-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
856818
LIBMYSQLCLIENT:
857819
name: LIBMYSQLCLIENT
858820
runs-on: ubuntu-${{ inputs.ubuntu_version }}
@@ -895,11 +857,6 @@ jobs:
895857
withMysqli: ${{ inputs.libmysqlclient_with_mysqli }}
896858
- name: Verify generated files are up to date
897859
uses: ./.github/actions/verify-generated-files
898-
- name: Notify Slack
899-
if: failure()
900-
uses: ./.github/actions/notify-slack
901-
with:
902-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
903860
PECL:
904861
if: inputs.branch == 'master'
905862
runs-on: ubuntu-22.04
@@ -1007,11 +964,6 @@ jobs:
1007964
/opt/php/bin/phpize
1008965
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config
1009966
make -j$(/usr/bin/nproc)
1010-
- name: Notify Slack
1011-
if: failure()
1012-
uses: ./.github/actions/notify-slack
1013-
with:
1014-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
1015967
WINDOWS:
1016968
strategy:
1017969
fail-fast: false

.github/workflows/root.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
- name: Generate Matrix
3232
id: set-matrix
3333
run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}"
34-
- name: Notify Slack
35-
if: failure()
36-
uses: ./.github/actions/notify-slack
37-
with:
38-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
3934
NIGHTLY:
4035
needs: GENERATE_MATRIX
4136
name: ${{ matrix.branch.ref }}
@@ -52,6 +47,7 @@ jobs:
5247
branch: ${{ matrix.branch.ref }}
5348
community_verify_type_inference: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5449
libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }}
50+
macos_arm64_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '15' || '14' }}
5551
run_alpine: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5652
run_linux_ppc64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5753
run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}

CODING_STANDARDS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ rewritten to comply with these rules.
276276

277277
1. The length of constant string literals should be calculated via ``strlen()``
278278
instead of using ``sizeof()-1`` as it is clearer and any modern compiler
279-
will optimize it away. Legacy usages of the latter style exists within the
279+
will optimize it away. Legacy usages of the latter style exist within the
280280
codebase but should not be refactored, unless larger refactoring around that
281281
code is taking place.
282282

EXTENSIONS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ EXTENSION: tidy
495495
PRIMARY MAINTAINER: John Coggeshall <[email protected]> (2003 - 2006)
496496
Ilia Alshanetsky <[email protected]> (2003 - 2009)
497497
Nuno Lopes <[email protected]> (2006 - 2012)
498+
Niels Dossche <[email protected]> (2025 - 2025)
498499
MAINTENANCE: Maintained
499500
STATUS: Working
500501
-------------------------------------------------------------------------------

NEWS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,22 @@ PHP NEWS
2525
. Invalid values now throw in Phar::mungServer() instead of being silently
2626
ignored. (nielsdos)
2727

28+
- Reflection:
29+
. Fixed bug GH-20217 (ReflectionClass::isIterable() incorrectly returns true
30+
for classes with property hooks). (alexandre-daubois)
31+
2832
- Standard:
2933
. Fixed bug GH-19926 (reset internal pointer earlier while splicing array
3034
while COW violation flag is still set). (alexandre-daubois)
3135

36+
- Streams:
37+
. Added so_reuseaddr streams context socket option that allows disabling
38+
address resuse.
39+
40+
- Zip:
41+
. Fixed ZipArchive callback being called after executor has shut down.
42+
(ilutov)
43+
. Support minimum version for libzip dependency updated to 1.0.0.
44+
(David Carlier)
45+
3246
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

0 commit comments

Comments
 (0)