Skip to content

Commit fd33542

Browse files
committed
Merge remote-tracking branch 'php/master' into feat/embed-cli
2 parents b54fce7 + 77925b9 commit fd33542

File tree

1,166 files changed

+46004
-47382
lines changed

Some content is hidden

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

1,166 files changed

+46004
-47382
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
arm:
55
resource_class: arm.medium
66
docker:
7-
- image: cimg/base:current-22.04
7+
- image: cimg/base:current-24.04
88
- image: mysql:8.4
99
environment:
1010
MYSQL_ALLOW_EMPTY_PASSWORD: true
@@ -60,7 +60,7 @@ jobs:
6060
libreadline-dev \
6161
libldap2-dev \
6262
libsodium-dev \
63-
libargon2-0-dev \
63+
libargon2-dev \
6464
libmm-dev \
6565
libsnmp-dev \
6666
snmpd \
@@ -78,7 +78,7 @@ jobs:
7878
libqdbm-dev \
7979
libjpeg-dev \
8080
libpng-dev \
81-
libfreetype6-dev
81+
libfreetype-dev
8282
- run:
8383
name: ./configure
8484
command: |

.gitattributes

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

2222
# Collapse generated files within git and pull request diff.
2323
**/*_arginfo.h linguist-generated -diff
24+
**/*_decl.h linguist-generated -diff
2425
/main/debug_gdb_scripts.c linguist-generated -diff
2526
/Zend/zend_vm_execute.h linguist-generated -diff
2627
/Zend/zend_vm_handlers.h linguist-generated -diff
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: ./configure (unit tests)
2+
description: Configure PHP with minimal settings for unit testing
3+
runs:
4+
using: composite
5+
steps:
6+
- shell: bash
7+
run: |
8+
set -x
9+
./buildconf --force
10+
./configure --disable-all --enable-embed=static

.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:2022-CU14-ubuntu-22.04
14+
-d mcr.microsoft.com/mssql/server:2025-latest

.github/actions/verify-generated-files/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ runs:
1212
Zend/zend_vm_gen.php
1313
ext/tokenizer/tokenizer_data_gen.php
1414
build/gen_stub.php -f --generate-optimizer-info --verify
15-
# Use the -a flag for a bug in git 2.46.0, which doesn't consider changed -diff files.
16-
git add . -N && git diff -a --exit-code
15+
ext/phar/makestub.php
16+
.github/scripts/test-directory-unchanged.sh .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!*.patch
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
tmp_dir=/tmp/php-src-download-bundled/boost-context
6+
rm -rf "$tmp_dir"
7+
8+
revision=refs/tags/boost-1.86.0
9+
10+
git clone --depth 1 --revision="$revision" https://github.com/boostorg/context.git "$tmp_dir"
11+
12+
rm -rf Zend/asm
13+
cp -R "$tmp_dir"/src/asm Zend/asm
14+
15+
cd Zend/asm
16+
17+
# remove unneeded files
18+
rm jump_arm_aapcs_pe_armasm.asm
19+
rm jump_i386_ms_pe_clang_gas.S
20+
rm jump_i386_ms_pe_gas.asm
21+
rm jump_i386_x86_64_sysv_macho_gas.S
22+
rm jump_ppc32_ppc64_sysv_macho_gas.S
23+
rm jump_x86_64_ms_pe_clang_gas.S
24+
rm make_arm_aapcs_pe_armasm.asm
25+
rm make_i386_ms_pe_clang_gas.S
26+
rm make_i386_ms_pe_gas.asm
27+
rm make_i386_x86_64_sysv_macho_gas.S
28+
rm make_ppc32_ppc64_sysv_macho_gas.S
29+
rm make_x86_64_ms_pe_clang_gas.S
30+
rm ontop_*.S
31+
rm ontop_*.asm
32+
rm tail_ontop_ppc32_sysv.cpp
33+
34+
# move renamed files
35+
# GH-13896 introduced these 2 files named as .S but since https://github.com/boostorg/context/pull/265 they are named as .asm
36+
mv jump_x86_64_ms_pe_gas.asm jump_x86_64_ms_pe_gas.S
37+
mv make_x86_64_ms_pe_gas.asm make_x86_64_ms_pe_gas.S
38+
39+
# add extra files
40+
git restore LICENSE
41+
git restore save_xmm_x86_64_ms_masm.asm # added in GH-18352, not an upstream boost.context file
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
tmp_dir=/tmp/php-src-download-bundled/pcre2
6+
rm -rf "$tmp_dir"
7+
8+
revision=refs/tags/pcre2-10.44
9+
10+
git clone --depth 1 --recurse-submodules --revision="$revision" https://github.com/PCRE2Project/pcre2.git "$tmp_dir"
11+
12+
rm -rf ext/pcre/pcre2lib
13+
cp -R "$tmp_dir"/src ext/pcre/pcre2lib
14+
15+
cd ext/pcre/pcre2lib
16+
17+
# remove unneeded files
18+
rm config.h.generic
19+
rm pcre2.h.in
20+
rm pcre2_dftables.c
21+
rm pcre2_fuzzsupport.c
22+
rm pcre2_jit_test.c
23+
rm pcre2demo.c
24+
rm pcre2grep.c
25+
rm pcre2posix.c
26+
rm pcre2posix.h
27+
rm pcre2posix_test.c
28+
rm pcre2test.c
29+
30+
# move renamed files
31+
mv pcre2.h.generic pcre2.h
32+
mv pcre2_chartables.c.dist pcre2_chartables.c
33+
34+
# add extra files
35+
git restore config.h # based on config.h.generic but with many changes
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/ext/uri/uriparser/src/UriConfig.h b/ext/uri/uriparser/src/UriConfig.h
2+
index b9a85a8..ab78b96 100644
3+
--- a/ext/uri/uriparser/src/UriConfig.h
4+
+++ b/ext/uri/uriparser/src/UriConfig.h
5+
@@ -41,7 +41,9 @@
6+
7+
# define PACKAGE_VERSION "@PROJECT_VERSION@"
8+
9+
+/*
10+
#cmakedefine HAVE_WPRINTF
11+
#cmakedefine HAVE_REALLOCARRAY
12+
+*/
13+
14+
#endif /* !defined(URI_CONFIG_H) */
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
tmp_dir=/tmp/php-src-download-bundled/uriparser
6+
rm -rf "$tmp_dir"
7+
8+
revision=refs/tags/uriparser-1.0.0
9+
10+
git clone --depth 1 --revision="$revision" https://github.com/uriparser/uriparser.git "$tmp_dir"
11+
12+
rm -rf ext/uri/uriparser
13+
mkdir ext/uri/uriparser
14+
cp -R "$tmp_dir"/src ext/uri/uriparser
15+
cp -R "$tmp_dir"/include ext/uri/uriparser
16+
cp "$tmp_dir"/COPYING.BSD-3-Clause ext/uri/uriparser
17+
18+
cd ext/uri/uriparser
19+
20+
# move renamed files
21+
mv src/UriConfig.h.in src/UriConfig.h
22+
23+
# patch customized files
24+
git apply -v ../../../.github/scripts/download-bundled/uriparser.config.patch

0 commit comments

Comments
 (0)