Skip to content

Commit 24dbf3a

Browse files
committed
Merge tag 'php-8.1.22' into was-8.1.x
Tag for php-8.1.22
2 parents 7eec5f5 + 5ffbd1a commit 24dbf3a

File tree

126 files changed

+1728
-527
lines changed

Some content is hidden

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

126 files changed

+1728
-527
lines changed

.appveyor.yml

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

.cirrus.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ freebsd_task:
3030
arm_task:
3131
name: ARM_DEBUG_NTS
3232
arm_container:
33-
image: gcc:10
33+
image: debian:11
3434
additional_containers:
3535
- name: mysql
3636
image: mysql:8
@@ -52,6 +52,9 @@ arm_task:
5252
- apt-get update -y
5353
- >-
5454
apt-get install -y
55+
gcc
56+
g++
57+
autoconf
5558
bison
5659
re2c
5760
locales
@@ -68,6 +71,7 @@ arm_task:
6871
libsasl2-dev
6972
libxpm-dev
7073
libzip-dev
74+
libbz2-dev
7175
libsqlite3-dev
7276
libwebp-dev
7377
libonig-dev
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Setup Caddy server
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
set -x
8+
sudo curl 'https://caddyserver.com/api/download?os=linux&arch=amd64' -o /usr/bin/caddy
9+
sudo chmod +x /usr/bin/caddy
10+
sudo caddy start --config ext/curl/tests/Caddyfile

.github/scripts/setup-slapd.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ DBDN=`sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(&(olcRootD
4444

4545
sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/ppolicy.ldif
4646

47-
sudo service slapd restart
48-
4947
sudo ldapmodify -Q -Y EXTERNAL -H ldapi:/// << EOF
5048
dn: $DBDN
5149
changetype: modify
@@ -90,8 +88,6 @@ add: olcModuleLoad
9088
olcModuleLoad: dds
9189
EOF
9290

93-
sudo service slapd restart
94-
9591
sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// << EOF
9692
dn: olcOverlay=sssvlv,$DBDN
9793
objectClass: olcOverlayConfig
@@ -116,17 +112,13 @@ objectClass: olcDdsConfig
116112
olcOverlay: dds
117113
EOF
118114

119-
sudo service slapd restart
120-
121115
sudo ldapmodify -Q -Y EXTERNAL -H ldapi:/// << EOF
122116
dn: $DBDN
123117
changetype: modify
124118
add: olcDbIndex
125119
olcDbIndex: entryExpireTimestamp eq
126120
EOF
127121

128-
sudo service slapd restart
129-
130122
ldapadd -H ldapi:/// -D cn=Manager,dc=my-domain,dc=com -w secret <<EOF
131123
dn: dc=my-domain,dc=com
132124
objectClass: top
@@ -164,6 +156,8 @@ o: php ldap tests
164156
## pwdSafeModify: FALSE
165157
EOF
166158

159+
sudo service slapd restart
160+
167161
# Verify TLS connection
168162
tries=0
169163
while : ; do

.github/scripts/windows/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
3+
if /i "%GITHUB_ACTIONS%" neq "True" (
44
echo for CI only
55
exit /b 3
66
)

.github/scripts/windows/build_task.bat

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
@echo off
22

3-
if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
3+
if /i "%GITHUB_ACTIONS%" neq "True" (
44
echo for CI only
55
exit /b 3
66
)
77

8-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >NUL 2>NUL
9-
if %errorlevel% neq 0 exit /b 3
10-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin64 >NUL 2>NUL
11-
if %errorlevel% neq 0 exit /b 3
12-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw >NUL 2>NUL
13-
if %errorlevel% neq 0 exit /b 3
14-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw-w64 >NUL 2>NUL
15-
if %errorlevel% neq 0 exit /b 3
16-
if "%APPVEYOR%" equ "True" rmdir /s /q C:\msys64 >NUL 2>NUL
17-
if %errorlevel% neq 0 exit /b 3
18-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
19-
if %errorlevel% neq 0 exit /b 3
20-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
21-
if %errorlevel% neq 0 exit /b 3
22-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
23-
if %errorlevel% neq 0 exit /b 3
24-
if "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
25-
if %errorlevel% neq 0 exit /b 3
268
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
279
if %errorlevel% neq 0 exit /b 3
2810
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL

.github/scripts/windows/test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
3+
if /i "%GITHUB_ACTIONS%" neq "True" (
44
echo for CI only
55
exit /b 3
66
)

.github/scripts/windows/test_task.bat

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
3+
if /i "%GITHUB_ACTIONS%" neq "True" (
44
echo for CI only
55
exit /b 3
66
)
@@ -32,11 +32,7 @@ set PDO_MYSQL_TEST_PASS=%MYSQL_PWD%
3232
set PDO_MYSQL_TEST_HOST=%MYSQL_TEST_HOST%
3333
set PDO_MYSQL_TEST_PORT=%MYSQL_TEST_PORT%
3434
set PDO_MYSQL_TEST_DSN=mysql:host=%PDO_MYSQL_TEST_HOST%;port=%PDO_MYSQL_TEST_PORT%;dbname=test
35-
if /i "%APPVEYOR%" equ "True" (
36-
set TMP_MYSQL_BIN=%ProgramFiles%\MySql\MySQL Server 5.7\bin
37-
) else (
38-
set TMP_MYSQL_BIN=C:\mysql\bin
39-
)
35+
set TMP_MYSQL_BIN=C:\mysql\bin
4036
"%TMP_MYSQL_BIN%\mysql.exe" --host=%PDO_MYSQL_TEST_HOST% --port=%MYSQL_TEST_PORT% --user=%MYSQL_TEST_USER% --password=%MYSQL_TEST_PASSWD% -e "CREATE DATABASE IF NOT EXISTS test"
4137
if %errorlevel% neq 0 exit /b 3
4238

@@ -46,22 +42,14 @@ set PGPASSWORD=Password12!
4642
rem set PGSQL_TEST_CONNSTR=host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!
4743
echo ^<?php $conn_str = "host=127.0.0.1 dbname=test port=5432 user=%PGUSER% password=%PGPASSWORD%"; ?^> >> "./ext/pgsql/tests/config.inc"
4844
set PDO_PGSQL_TEST_DSN=pgsql:host=127.0.0.1 port=5432 dbname=test user=%PGUSER% password=%PGPASSWORD%
49-
if /i "%APPVEYOR%" equ "True" (
50-
set TMP_POSTGRESQL_BIN=%ProgramFiles%\PostgreSQL\10\bin
51-
) else (
52-
set TMP_POSTGRESQL_BIN=%PGBIN%
53-
)
45+
set TMP_POSTGRESQL_BIN=%PGBIN%
5446
"%TMP_POSTGRESQL_BIN%\createdb.exe" test
5547
if %errorlevel% neq 0 exit /b 3
5648

5749
rem setup ODBC related exts
5850
set ODBC_TEST_USER=sa
5951
set ODBC_TEST_PASS=Password12!
60-
if /i "%APPVEYOR%" equ "True" (
61-
set ODBC_TEST_DSN=Driver={ODBC Driver 13 for SQL Server};Server=^(local^)\SQL2017;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
62-
) else (
63-
set ODBC_TEST_DSN=Driver={ODBC Driver 17 for SQL Server};Server=^(local^)\SQLEXPRESS;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
64-
)
52+
set ODBC_TEST_DSN=Driver={ODBC Driver 17 for SQL Server};Server=^(local^)\SQLEXPRESS;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
6553
set PDOTEST_DSN=odbc:%ODBC_TEST_DSN%
6654

6755
rem prepare for ext/openssl
@@ -133,11 +121,4 @@ if %EXIT_CODE% GEQ 1 (
133121
git diff > bless_tests.patch
134122
)
135123

136-
if /i "%APPVEYOR%" equ "True" (
137-
appveyor PushArtifact %TEST_PHP_JUNIT%
138-
if %EXIT_CODE% GEQ 1 (
139-
appveyor PushArtifact bless_tests.patch
140-
)
141-
)
142-
143124
exit /b %EXIT_CODE%

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
uses: ./.github/actions/setup-mssql
4343
- name: Create Oracle container
4444
uses: ./.github/actions/setup-oracle
45+
- name: Setup Caddy server
46+
uses: ./.github/actions/setup-caddy
4547
- name: apt
4648
uses: ./.github/actions/apt-x64
4749
- name: ccache

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ locations.
140140
├─ zend_vm_opcodes.c # Generated by `Zend/zend_vm_gen.php`
141141
├─ zend_vm_opcodes.h # Generated by `Zend/zend_vm_gen.php`
142142
└─ ...
143-
├─ appveyor/ # Appveyor CI service files
144143
└─ build/ # *nix build system files
145144
├─ ax_*.m4 # https://github.com/autoconf-archive/autoconf-archive
146145
├─ config.guess # https://git.savannah.gnu.org/cgit/config.git

0 commit comments

Comments
 (0)