Skip to content

Commit 28360f5

Browse files
committed
Merge tag 'php-8.1.32' into was-8.1.x
Tag for php-8.1.32
2 parents 06b7ec3 + aa4bed9 commit 28360f5

File tree

149 files changed

+2166
-664
lines changed

Some content is hidden

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

149 files changed

+2166
-664
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
resource_class: arm.medium
66
docker:
77
- image: cimg/base:current-22.04
8-
- image: mysql:8
8+
- image: mysql:8.3
99
environment:
1010
MYSQL_ALLOW_EMPTY_PASSWORD: true
1111
MYSQL_ROOT_PASSWORD: ''
@@ -166,6 +166,7 @@ jobs:
166166
`#--enable-werror`
167167
- run:
168168
name: make
169+
no_output_timeout: 30m
169170
command: make -j2 > /dev/null
170171
- run:
171172
name: make install
@@ -177,6 +178,7 @@ jobs:
177178
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
178179
- run:
179180
name: Test
181+
no_output_timeout: 30m
180182
command: |
181183
sapi/cli/php run-tests.php \
182184
-d zend_extension=opcache.so \

.cirrus.yml

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

.github/actions/brew/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ runs:
3232
libjpeg \
3333
libxslt \
3434
postgresql
35-
brew reinstall icu4c@74
36-
brew link icu4c gettext --force
35+
brew link gettext --force
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: ./configure
2+
inputs:
3+
configurationParameters:
4+
default: ''
5+
required: false
6+
skipSlow:
7+
default: false
8+
required: false
9+
runs:
10+
using: composite
11+
steps:
12+
- shell: bash
13+
run: |
14+
set -x
15+
./buildconf --force
16+
./configure \
17+
--enable-option-checking=fatal \
18+
--prefix=/usr \
19+
--with-libdir=lib64 \
20+
--enable-phpdbg \
21+
--enable-fpm \
22+
--with-pdo-mysql=mysqlnd \
23+
--with-mysqli=mysqlnd \
24+
${{ inputs.skipSlow == 'false' && '--with-pgsql' || '' }} \
25+
${{ inputs.skipSlow == 'false' && '--with-pdo-pgsql' || '' }} \
26+
${{ inputs.skipSlow == 'false' && '--with-pdo-sqlite' || '' }} \
27+
--enable-intl \
28+
--without-pear \
29+
--enable-gd \
30+
--with-jpeg \
31+
--with-webp \
32+
--with-freetype \
33+
--with-xpm \
34+
--enable-exif \
35+
--with-zip \
36+
--with-zlib \
37+
--enable-soap \
38+
--enable-xmlreader \
39+
--with-xsl \
40+
${{ inputs.skipSlow == 'false' && '--with-tidy' || '' }} \
41+
--enable-sysvsem \
42+
--enable-sysvshm \
43+
--enable-shmop \
44+
--enable-pcntl \
45+
--with-readline \
46+
--enable-mbstring \
47+
--with-iconv \
48+
--with-curl \
49+
--with-gettext \
50+
--enable-sockets \
51+
--with-bz2 \
52+
--with-openssl \
53+
--with-gmp \
54+
--enable-bcmath \
55+
--enable-calendar \
56+
--enable-ftp \
57+
${{ inputs.skipSlow == 'false' && '--with-enchant=/usr' || '' }} \
58+
--enable-sysvmsg \
59+
--with-ffi \
60+
--enable-zend-test \
61+
${{ inputs.skipSlow == 'false' && '--enable-dl-test=shared' || '' }} \
62+
${{ inputs.skipSlow == 'false' && '--with-ldap' || '' }} \
63+
${{ inputs.skipSlow == 'false' && '--with-ldap-sasl' || '' }} \
64+
--with-password-argon2 \
65+
--with-mhash \
66+
--with-sodium \
67+
--enable-dba \
68+
--with-cdb \
69+
--enable-flatfile \
70+
--enable-inifile \
71+
--with-tcadb \
72+
--with-lmdb \
73+
--with-qdbm \
74+
${{ inputs.skipSlow == 'false' && '--with-snmp' || '' }} \
75+
${{ inputs.skipSlow == 'false' && '--with-unixODBC' || '' }} \
76+
${{ inputs.skipSlow == 'false' && '--with-pdo-odbc=unixODBC,/usr' || '' }} \
77+
--with-config-file-path=/etc \
78+
--with-config-file-scan-dir=/etc/php.d \
79+
${{ inputs.skipSlow == 'false' && '--with-pdo-dblib' || '' }} \
80+
--enable-werror \
81+
${{ inputs.configurationParameters }} || cat config.log

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ runs:
6666
--with-ffi \
6767
--enable-zend-test \
6868
--enable-dl-test=shared \
69-
--enable-intl \
7069
--with-mhash \
7170
--with-sodium \
7271
--enable-dba \

.github/actions/freebsd/action.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: FreeBSD
2+
runs:
3+
using: composite
4+
steps:
5+
- name: FreeBSD
6+
uses: vmactions/freebsd-vm@v1
7+
with:
8+
release: '13.3'
9+
usesh: true
10+
copyback: false
11+
# Temporarily disable sqlite, as FreeBSD ships it with disabled double quotes. We'll need to fix our tests.
12+
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269889
13+
prepare: |
14+
cd $GITHUB_WORKSPACE
15+
16+
kldload accf_http
17+
pkg install -y \
18+
autoconf \
19+
bison \
20+
gmake \
21+
re2c \
22+
icu \
23+
libiconv \
24+
png \
25+
freetype2 \
26+
enchant2 \
27+
bzip2 \
28+
t1lib \
29+
gmp \
30+
tidyp \
31+
libsodium \
32+
libzip \
33+
libxml2 \
34+
libxslt \
35+
openssl \
36+
oniguruma \
37+
pkgconf \
38+
webp \
39+
libavif \
40+
`#sqlite3` \
41+
curl
42+
43+
./buildconf -f
44+
./configure \
45+
--prefix=/usr/local \
46+
--enable-debug \
47+
--enable-option-checking=fatal \
48+
--enable-fpm \
49+
`#--with-pdo-sqlite` \
50+
--without-sqlite3 \
51+
--without-pdo-sqlite \
52+
--without-pear \
53+
--with-bz2 \
54+
--with-avif \
55+
--with-jpeg \
56+
--with-webp \
57+
--with-freetype \
58+
--enable-gd \
59+
--enable-exif \
60+
--with-zip \
61+
--with-zlib \
62+
--enable-soap \
63+
--enable-xmlreader \
64+
--with-xsl \
65+
--with-libxml \
66+
--enable-shmop \
67+
--enable-pcntl \
68+
--enable-mbstring \
69+
--with-curl \
70+
--enable-sockets \
71+
--with-openssl \
72+
--with-iconv=/usr/local \
73+
--enable-bcmath \
74+
--enable-calendar \
75+
--enable-ftp \
76+
--with-ffi \
77+
--enable-zend-test \
78+
--enable-dl-test=shared \
79+
--enable-intl \
80+
--with-mhash \
81+
--with-sodium \
82+
--with-config-file-path=/etc \
83+
--with-config-file-scan-dir=/etc/php.d
84+
gmake -j2
85+
mkdir /etc/php.d
86+
gmake install > /dev/null
87+
echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
88+
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
89+
echo opcache.preload_user=root >> /etc/php.d/opcache.ini
90+
run: |
91+
cd $GITHUB_WORKSPACE
92+
93+
export SKIP_IO_CAPTURE_TESTS=1
94+
export CI_NO_IPV6=1
95+
export STACK_LIMIT_DEFAULTS_CHECK=1
96+
sapi/cli/php run-tests.php \
97+
-P -q -j2 \
98+
-g FAIL,BORK,LEAK,XLEAK \
99+
--offline \
100+
--show-diff \
101+
--show-slow 1000 \
102+
--set-timeout 120 \
103+
-d zend_extension=opcache.so

.github/actions/setup-mssql/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ runs:
1111
-p 1433:1433 \
1212
--name sql1 \
1313
-h sql1 \
14-
-d mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04
14+
-d mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04

.github/actions/setup-windows/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ runs:
33
using: composite
44
steps:
55
- name: Setup MySQL
6-
shell: pwsh
6+
shell: cmd
77
run: |
8-
choco install mysql -y --no-progress --params="/port:3306"
9-
mysql.exe --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
8+
mysqld --initialize-insecure
9+
mysqld --install
10+
net start MySQL
11+
mysql --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
1012
- name: Setup MSSQL
1113
shell: pwsh
1214
run: |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
set -x
88
99
sudo service slapd start
10-
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
10+
docker exec sql1 /opt/mssql-tools18/bin/sqlcmd -S 127.0.0.1 -U SA -C -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
1111
sudo locale-gen de_DE
1212
1313
./.github/scripts/setup-slapd.sh
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
inputs:
3+
runTestsParameters:
4+
default: ''
5+
required: false
6+
runs:
7+
using: composite
8+
steps:
9+
- shell: bash
10+
run: |
11+
set -x
12+
# XXX: Set up other database tests?
13+
# XXX: These tests are not running containerized
14+
export MYSQL_TEST_USER=ci
15+
export MYSQL_TEST_PASSWD=ci
16+
if [[ -z "$PDO_MYSQL_TEST_DSN" ]]; then
17+
export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
18+
fi
19+
export PDO_MYSQL_TEST_USER=ci
20+
export PDO_MYSQL_TEST_PASS=ci
21+
export PGSQL_TEST_CONNSTR="host=localhost dbname=test port=5432 user=ci password=ci"
22+
if [[ -z "$PDO_PGSQL_TEST_DSN" ]]; then
23+
export PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=ci password=ci"
24+
fi
25+
# Slow tests criteron is doubled because this runner isn't as fast as others
26+
export SKIP_IO_CAPTURE_TESTS=1
27+
export STACK_LIMIT_DEFAULTS_CHECK=1
28+
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
29+
-j$(nproc) \
30+
-g FAIL,BORK,LEAK,XLEAK \
31+
--no-progress \
32+
--show-diff \
33+
--show-slow 2000 \
34+
--set-timeout 120

0 commit comments

Comments
 (0)