Skip to content

Commit ccdba6c

Browse files
committed
Merge branch 'tests_psalm_phpstan_phpseclib'
2 parents 9a9c21a + 1d84bdb commit ccdba6c

File tree

692 files changed

+24348
-1014536
lines changed

Some content is hidden

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

692 files changed

+24348
-1014536
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ jobs:
153153
`#--enable-werror`
154154
- run:
155155
name: make
156+
no_output_timeout: 30m
156157
command: make -j2 > /dev/null
157158
- run:
158159
name: make install

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Collapse generated files within git and pull request diff.
2323
**/*_arginfo.h linguist-generated -diff
24-
/main/gdb_inlined_script.c linguist-generated -diff
24+
/main/debug_gdb_scripts.c linguist-generated -diff
2525
/Zend/zend_vm_execute.h linguist-generated -diff
2626
/Zend/zend_vm_handlers.h linguist-generated -diff
2727
/Zend/zend_vm_opcodes.[ch] linguist-generated -diff

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
/ext/pdo_sqlite @SakiTakamachi
4545
/ext/pgsql @devnexen
4646
/ext/random @TimWolla @zeriyoshi
47+
/ext/reflection @DanielEScherzer
4748
/ext/session @Girgias
4849
/ext/simplexml @nielsdos
4950
/ext/soap @nielsdos

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,23 @@ body:
2222
```
2323
validations:
2424
required: true
25-
- type: input
25+
- type: textarea
2626
attributes:
2727
label: PHP Version
28-
description: "The used PHP version. Make sure it is [supported](https://www.php.net/supported-versions.php)."
29-
placeholder: "PHP 8.0.12"
28+
description: |
29+
Please run PHP with the `-v` flag (e.g. `php -v`, `php8.3 -v`, `php-fpm -v` or similar) and provide the full output of that command. If executing that command is not possible, please provide the full version number as given in PHPInfo.
30+
31+
Please make sure that the used PHP version [is a supported version](https://www.php.net/supported-versions.php).
32+
placeholder: |
33+
PHP 8.3.19 (cli) (built: Mar 13 2025 17:44:40) (NTS)
34+
Copyright (c) The PHP Group
35+
Zend Engine v4.3.19, Copyright (c) Zend Technologies
36+
with Zend OPcache v8.3.19, Copyright (c), by Zend Technologies
37+
render: plain
3038
validations:
3139
required: true
3240
- type: input
3341
attributes:
3442
label: Operating System
3543
description: "The used operating system, if relevant."
36-
placeholder: "Ubuntu 20.04"
44+
placeholder: "Ubuntu 24.04"

.github/actions/freebsd/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ runs:
2727
bzip2 \
2828
t1lib \
2929
gmp \
30-
tidyp \
3130
libsodium \
3231
libzip \
3332
libxml2 \

.github/nightly.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ function (): void {
123123
"",
124124
function (): void {
125125
e("php ./phpunit install");
126-
127-
// Test causes a heap-buffer-overflow but I cannot reproduce it locally...
128-
$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php");
129-
$c = str_replace("public function testSanitizeDeepNestedString()", "/** @group skip */\n public function testSanitizeDeepNestedString()", $c);
130-
file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);
131-
// Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668
132-
$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php");
133-
$c = str_replace("*/\n public function testCastNonTrailingCharPointer()", "* @group skip\n */\n public function testCastNonTrailingCharPointer()", $c);
134-
file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);
135126
},
136127
function (): iterable {
137128
$it = new RecursiveDirectoryIterator("src/Symfony");

.github/scripts/windows/test_task.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,15 @@ if "%PLATFORM%" == "x64" (
5858
curl -sLo Firebird.zip %PHP_FIREBIRD_DOWNLOAD_URL%
5959
7z x -oC:\Firebird Firebird.zip
6060
set PDO_FIREBIRD_TEST_DATABASE=C:\test.fdb
61-
set PDO_FIREBIRD_TEST_DSN=firebird:dbname=%PDO_FIREBIRD_TEST_DATABASE%
61+
set PDO_FIREBIRD_TEST_DSN=firebird:dbname=127.0.0.1:%PDO_FIREBIRD_TEST_DATABASE%
6262
set PDO_FIREBIRD_TEST_USER=SYSDBA
6363
set PDO_FIREBIRD_TEST_PASS=phpfi
64+
echo create user %PDO_FIREBIRD_TEST_USER% password '%PDO_FIREBIRD_TEST_PASS%';> C:\Firebird\create_user.sql
65+
echo commit;>> C:\Firebird\create_user.sql
6466
echo create database '%PDO_FIREBIRD_TEST_DATABASE%' user '%PDO_FIREBIRD_TEST_USER%' password '%PDO_FIREBIRD_TEST_PASS%';> C:\Firebird\setup.sql
6567
C:\Firebird\instsvc.exe install -n TestInstance
6668
C:\Firebird\isql -q -i C:\Firebird\setup.sql
69+
C:\Firebird\isql -q -i C:\Firebird\create_user.sql -user sysdba %PDO_FIREBIRD_TEST_DATABASE%
6770
C:\Firebird\instsvc.exe start -n TestInstance
6871
if %errorlevel% neq 0 exit /b 3
6972
path C:\Firebird;%PATH%

.github/workflows/nightly.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
windows_version:
3030
required: true
3131
type: string
32+
skip_laravel:
33+
required: true
34+
type: boolean
3235
skip_symfony:
3336
required: true
3437
type: boolean
@@ -76,11 +79,6 @@ jobs:
7679
with:
7780
runTestsParameters: >-
7881
--asan -x
79-
- name: Notify Slack
80-
if: failure()
81-
uses: ./.github/actions/notify-slack
82-
with:
83-
token: ${{ secrets.ACTION_MONITORING_SLACK }}
8482
ALPINE:
8583
if: inputs.run_alpine
8684
name: ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS
@@ -501,7 +499,7 @@ jobs:
501499
- name: git checkout
502500
uses: actions/checkout@v4
503501
with:
504-
ref: master
502+
ref: ${{ inputs.branch }}
505503
- name: apt
506504
uses: ./.github/actions/apt-x64
507505
- name: ./configure
@@ -550,7 +548,6 @@ jobs:
550548
php -v
551549
552550
- name: Test multiple libraries and frameworks in parallel
553-
if: always()
554551
run: |
555552
sudo prlimit --pid $$ --nofile=1048576:1048576
556553
@@ -569,7 +566,7 @@ jobs:
569566
- name: 'Symfony Preloading'
570567
if: ${{ !cancelled() && !inputs.skip_symfony }}
571568
run: |
572-
php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-reqs
569+
php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-req=php+
573570
cd symfony_demo
574571
git rev-parse HEAD
575572
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ jobs:
368368
path: ${{ github.workspace }}/benchmark/profiles
369369
retention-days: 30
370370
FREEBSD:
371+
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
371372
name: FREEBSD
372373
runs-on: ubuntu-latest
373374
steps:

.github/workflows/root.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
asan_ubuntu_version: ${{
5050
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
51-
|| '20.04' }}
51+
|| '22.04' }}
5252
branch: ${{ matrix.branch.ref }}
5353
community_verify_type_inference: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5454
libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }}
@@ -57,9 +57,9 @@ jobs:
5757
run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5858
ubuntu_version: ${{
5959
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
60-
|| ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) && '22.04')
61-
|| '20.04' }}
60+
|| '22.04' }}
6261
windows_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '2022' || '2019' }}
62+
skip_laravel: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
6363
skip_symfony: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
6464
skip_wordpress: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
6565
secrets: inherit

0 commit comments

Comments
 (0)