Skip to content

Commit 6fa26b1

Browse files
committed
Merge branch 'master' into unserialize-notice-to-warning
* master: (274 commits) Cache UTF-8-validity status of strings in GC flags Escape the role attribute of namespaced classes (php#9952) Fix phpGH-9932: Discards further characters for session name. Fix phpGH-9890: OpenSSL legacy providers not available on Windows Fix regression test for phpGH-9535 on PHP-8.2+ Fix memory leak Introduce TEST_FPM_EXTENSION_DIR for FPM tests with shared extensions [ci skip] NEWS Fix phpGH-9535 (unintended behavior change for mb_strcut in PHP 8.1) [ci skip] NEWS [ci skip] NEWS Fix phpGH-9298: remove all registered signal handlers in pcntl RSHUTDOWN Fix phpGH-9923: Add the `SIGINFO` constant in pcntl for system supporting it. Skip tests if extension or SAPI is not included. (php#9939) Remove unused PHP 8.1 BC layer in JIT (php#9937) [skip ci] Skip function JIT in nightly for ASAN [skip ci] Backport XFAIL of failing test Disable opcache file_cache for observer preloading test No more need to cater to mime_magic extension [ci skip] Fix phpGH-9918: License information for xxHash is not included in README.REDIST.BINS file ...
2 parents 98cbab2 + d0d8344 commit 6fa26b1

File tree

565 files changed

+187016
-108574
lines changed

Some content is hidden

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

565 files changed

+187016
-108574
lines changed

.appveyor.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ version: "{branch}.build.{build}"
22

33
image: Visual Studio 2019
44

5-
branches:
6-
except:
7-
- PHP-5.6
8-
- PHP-7.0
9-
10-
clone_depth: 64
5+
clone_depth: 1
116

127
skip_commits:
138
files:
@@ -41,7 +36,7 @@ environment:
4136
- THREAD_SAFE: 1
4237
OPCACHE: 1
4338
PARALLEL: -j2
44-
INTRINSICS: AVX
39+
INTRINSICS: AVX2
4540

4641
services:
4742
# the setup scripts have to be touched, once some other db version is used
@@ -51,10 +46,10 @@ services:
5146

5247
platform:
5348
- x64
54-
# - x86
49+
#- x86
5550

5651
build_script:
57-
- appveyor\build.bat
52+
- .github\scripts\windows\build.bat
5853

5954
test_script:
60-
- appveyor\test.bat
55+
- .github\scripts\windows\test.bat

.github/actions/apt-x32/action.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: apt
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
set -x
8+
9+
export DEBIAN_FRONTEND=noninteractive
10+
dpkg --add-architecture i386
11+
apt-get update -y | true
12+
# TODO: Reenable postgresql + postgresql-contrib packages once they work again.
13+
apt-get install -y \
14+
autoconf \
15+
bison \
16+
g++-multilib \
17+
gcc-multilib \
18+
language-pack-de \
19+
libaspell-dev:i386 \
20+
libbz2-dev:i386 \
21+
libc6:i386 \
22+
libcurl4-openssl-dev:i386 \
23+
libffi-dev:i386 \
24+
libfreetype6-dev:i386 \
25+
libgmp-dev:i386 \
26+
libgssapi-krb5-2:i386 \
27+
libicu-dev:i386 \
28+
libjpeg-dev:i386 \
29+
libkrb5-dev:i386 \
30+
libonig-dev:i386 \
31+
libpng-dev:i386 \
32+
libpq-dev:i386 \
33+
libpspell-dev:i386 \
34+
libreadline-dev:i386 \
35+
libsasl2-dev:i386 \
36+
libsodium-dev:i386 \
37+
libsqlite3-dev:i386 \
38+
libssl-dev:i386 \
39+
libtidy-dev:i386 \
40+
libwebp-dev:i386 \
41+
libxml2-dev:i386 \
42+
libxml2-dev:i386 \
43+
libxpm-dev:i386 \
44+
libxslt1-dev:i386 \
45+
libzip-dev:i386 \
46+
locales \
47+
make \
48+
pkg-config:i386 \
49+
re2c \
50+
unzip \
51+
wget \
52+
zlib1g-dev:i386

.github/actions/build-libmysqlclient/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ runs:
2222
wget -nv $URL
2323
tar -xf $LIBMYSQL --strip-components=1 -C $MYSQL_DIR
2424
PDO_MYSQL=${MYSQL_DIR}
25-
${{ inputs.withMysqli && 'MYSQLI=${MYSQL_DIR}/bin/mysql_config' }}
25+
${{ inputs.withMysqli == 'true' && 'MYSQLI=${MYSQL_DIR}/bin/mysql_config' || '' }}
2626
./buildconf --force
2727
./configure ${{ inputs.configurationParameters }} \
2828
--enable-option-checking=fatal \
2929
--disable-all \
3030
--enable-pdo \
3131
--with-pdo-mysql=${PDO_MYSQL} \
32-
${{ inputs.withMysqli && '--with-mysqli=${MYSQLI}' }}
32+
${{ inputs.withMysqli == 'true' && '--with-mysqli=${MYSQLI}' || '' }}
3333
make clean
3434
make -j$(/usr/bin/nproc) >/dev/null

azure/i386/job.yml renamed to .github/actions/configure-x32/action.yml

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
parameters:
2-
configurationName: ''
3-
configurationParameters: ''
4-
timeoutInMinutes: 75
1+
name: ./configure
2+
inputs:
3+
configurationParameters:
4+
default: ''
5+
required: false
6+
runs:
7+
using: composite
8+
steps:
9+
- shell: bash
10+
run: |
11+
set -x
512
6-
jobs:
7-
- job: ${{ parameters.configurationName }}
8-
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
9-
pool:
10-
vmImage: 'ubuntu-20.04'
11-
steps:
12-
- template: apt.yml
13-
- script: |
1413
./buildconf --force
1514
export CFLAGS="-m32 -msse2"
1615
export CXXFLAGS="-m32 -msse2"
1716
export LDFLAGS=-L/usr/lib/i386-linux-gnu
18-
export PKG_CONFIG=/usr/bin/i686-linux-gnu-pkg-config
19-
./configure ${{ parameters.configurationParameters }} \
17+
./configure ${{ inputs.configurationParameters }} \
2018
--enable-option-checking=fatal \
2119
--build=i686-pc-linux-gnu \
2220
--prefix=/usr \
@@ -69,27 +67,3 @@ jobs:
6967
--enable-werror \
7068
--with-config-file-path=/etc \
7169
--with-config-file-scan-dir=/etc/php.d
72-
displayName: 'Configure Build'
73-
- script: make -j$(/usr/bin/nproc) >/dev/null
74-
displayName: 'Make Build'
75-
- script: |
76-
set -e
77-
sudo make install
78-
sudo mkdir /etc/php.d
79-
sudo chmod 777 /etc/php.d
80-
echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini
81-
echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini
82-
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
83-
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
84-
displayName: 'Install Build'
85-
- script: |
86-
set -e
87-
sudo service mysql start
88-
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
89-
#sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
90-
#sudo -u postgres psql -c "CREATE DATABASE test;"
91-
displayName: 'Setup'
92-
- template: ../tests.yml
93-
parameters:
94-
configurationName: ${{ parameters.configurationName }}
95-
runTestsParameters: ${{ parameters.runTestsParameters }}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ runs:
7272
--with-snmp \
7373
--with-unixODBC \
7474
--with-imap \
75-
--with-kerberos \
7675
--with-imap-ssl \
7776
--with-pdo-odbc=unixODBC,/usr \
7877
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Install
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
set -x
8+
make install
9+
mkdir /etc/php.d
10+
chmod 777 /etc/php.d
11+
echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini
12+
echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini
13+
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
14+
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
15+
echo opcache.preload_user=root >> /etc/php.d/opcache.ini

.github/actions/test-libmysqlclient/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ runs:
88
- shell: bash
99
run: |
1010
set -x
11-
${{ inputs.withMysqli && 'export MYSQL_TEST_USER=root' }}
12-
${{ inputs.withMysqli && 'export MYSQL_TEST_PASSWD=root' }}
11+
${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_USER=root' || '' }}
12+
${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_PASSWD=root' || '' }}
1313
export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
1414
export PDO_MYSQL_TEST_HOST=127.0.0.1
1515
export PDO_MYSQL_TEST_USER=root
1616
export PDO_MYSQL_TEST_PASS=root
17-
export TEST_PHP_JUNIT=junit.xml
1817
export REPORT_EXIT_STATUS=no
19-
rm -rf junit.xml | true
2018
sapi/cli/php run-tests.php -P -q \
2119
-g FAIL,BORK,LEAK,XLEAK \
22-
--offline --show-diff --show-slow 1000 --set-timeout 120 \
20+
--no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 \
2321
ext/pdo_mysql

.github/actions/test-linux/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ runs:
1414
set -x
1515
export MYSQL_TEST_USER=root
1616
export MYSQL_TEST_PASSWD=root
17-
export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
17+
if [[ -z "$PDO_MYSQL_TEST_DSN" ]]; then
18+
export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
19+
fi
1820
export PDO_MYSQL_TEST_USER=root
1921
export PDO_MYSQL_TEST_PASS=root
2022
export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
File renamed without changes.

.github/nightly_matrix.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function get_matrix_include(array $branches) {
5252
'zts' => true,
5353
'configuration_parameters' => "CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address'",
5454
'run_tests_parameters' => '--asan',
55+
'test_function_jit' => false,
5556
];
5657
if ($branch['ref'] !== 'PHP-8.0') {
5758
$jobs[] = [
@@ -60,13 +61,17 @@ function get_matrix_include(array $branches) {
6061
'debug' => true,
6162
'zts' => false,
6263
'run_tests_parameters' => '--repeat 2',
64+
'timeout_minutes' => 360,
65+
'test_function_jit' => true,
6366
];
6467
$jobs[] = [
6568
'name' => '_VARIATION',
6669
'branch' => $branch,
6770
'debug' => true,
6871
'zts' => true,
69-
'run_tests_parameters' => "CFLAGS='-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1'",
72+
'configuration_parameters' => "CFLAGS='-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1'",
73+
'timeout_minutes' => 360,
74+
'test_function_jit' => true,
7075
];
7176
}
7277
}

.github/scripts/setup-slapd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
set -ev
2+
set -ex
33

44
# Create TLS certificate
55
sudo mkdir -p /etc/ldap/ssl

appveyor/build.bat renamed to .github/scripts/windows/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if not exist "%SDK_RUNNER%" (
3838
exit /b 3
3939
)
4040

41-
cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\appveyor\build_task.bat
41+
cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\.github\scripts\windows\build_task.bat
4242
if %errorlevel% neq 0 exit /b 3
4343

4444
exit /b 0
File renamed without changes.

appveyor/test.bat renamed to .github/scripts/windows/test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if not exist "%SDK_RUNNER%" (
66
exit /b 3
77
)
88

9-
cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\appveyor\test_task.bat
9+
cmd /c %SDK_RUNNER% -t %APPVEYOR_BUILD_FOLDER%\.github\scripts\windows\test_task.bat
1010
if %errorlevel% neq 0 exit /b 3
1111

1212
exit /b 0
File renamed without changes.

.github/workflows/close-stale-feature-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
issues: write
1616
pull-requests: write
1717
steps:
18-
- uses: actions/stale@v4
18+
- uses: actions/stale@v6
1919
with:
2020
days-before-close: 14
2121
days-before-stale: 90

.github/workflows/close-stale-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
issues: write
1616
pull-requests: write
1717
steps:
18-
- uses: actions/stale@v4
18+
- uses: actions/stale@v6
1919
with:
2020
days-before-close: 7
2121
days-before-stale: 60

.github/workflows/labeler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: "Pull Request Labeler"
22
on:
33
- pull_request_target
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
triage:
710
permissions:
8-
contents: read
911
pull-requests: write
1012
runs-on: ubuntu-latest
1113
steps:
1214
- uses: actions/labeler@v4
1315
with:
14-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
16+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)