Skip to content

Commit cf8d259

Browse files
committed
Merge remote-tracking branch 'origin' into fix-gh16878-gmp-fact-overflow
2 parents e053c6b + f207014 commit cf8d259

File tree

13,596 files changed

+1285045
-1764270
lines changed

Some content is hidden

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

13,596 files changed

+1285045
-1764270
lines changed

.circleci/config.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,13 @@ jobs:
4646
libicu-dev \
4747
libtidy-dev \
4848
libenchant-2-dev \
49-
libaspell-dev \
50-
libpspell-dev \
5149
libsasl2-dev \
5250
libxpm-dev \
5351
libzip-dev \
5452
libbz2-dev \
5553
libsqlite3-dev \
5654
libwebp-dev \
5755
libonig-dev \
58-
libkrb5-dev \
59-
libgssapi-krb5-2 \
6056
libcurl4-openssl-dev \
6157
libxml2-dev \
6258
libxslt1-dev \
@@ -71,7 +67,6 @@ jobs:
7167
`#snmp-mibs-downloader` \
7268
freetds-dev \
7369
`#unixodbc-dev` \
74-
libc-client-dev \
7570
dovecot-core \
7671
dovecot-pop3d \
7772
dovecot-imapd \
@@ -95,7 +90,6 @@ jobs:
9590
--prefix=/usr \
9691
--enable-phpdbg \
9792
--enable-fpm \
98-
--enable-opcache \
9993
--with-pdo-mysql=mysqlnd \
10094
--with-mysqli=mysqlnd \
10195
--with-pgsql \
@@ -111,7 +105,6 @@ jobs:
111105
--enable-exif \
112106
--with-zip \
113107
--with-zlib \
114-
--with-zlib-dir=/usr \
115108
--enable-soap \
116109
--enable-xmlreader \
117110
--with-xsl \
@@ -131,9 +124,7 @@ jobs:
131124
--enable-bcmath \
132125
--enable-calendar \
133126
--enable-ftp \
134-
--with-pspell=/usr \
135127
--with-enchant=/usr \
136-
--with-kerberos \
137128
--enable-sysvmsg \
138129
--with-ffi \
139130
--enable-zend-test \
@@ -152,12 +143,7 @@ jobs:
152143
--with-qdbm \
153144
--with-snmp \
154145
`#--with-unixODBC` \
155-
--with-imap \
156-
--with-kerberos \
157-
--with-imap-ssl \
158146
`#--with-pdo-odbc=unixODBC,/usr` \
159-
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient` \
160-
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient` \
161147
--with-config-file-path=/etc \
162148
--with-config-file-scan-dir=/etc/php.d \
163149
--with-pdo-firebird \
@@ -181,9 +167,8 @@ jobs:
181167
no_output_timeout: 30m
182168
command: |
183169
sapi/cli/php run-tests.php \
184-
-d zend_extension=opcache.so \
185170
-d opcache.enable_cli=1 \
186-
-d opcache.jit_buffer_size=16M \
171+
-d opcache.jit_buffer_size=64M \
187172
-d opcache.jit=tracing \
188173
-d zend_test.observer.enabled=1 \
189174
-d zend_test.observer.show_output=0 \

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ max_line_length = 80
3232

3333
[*.patch]
3434
trim_trailing_whitespace = false
35+
36+
[*.rst]
37+
indent_style = space
38+
max_line_length = 100

.gdbinit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ define print_cvs
4242

4343
printf "Compiled variables count: %d\n\n", $cv_count
4444
while $cv_idx < $cv_count
45-
printf "[%d] '%s'\n", $cv_idx, $cv[$cv_idx].val
45+
printf "[%d] '$%s'\n", $cv_idx, $cv[$cv_idx].val@$cv[$cv_idx].len
4646
set $zvalue = ((zval *) $cv_ex_ptr) + $callFrameSize + $cv_idx
4747
printzv $zvalue
4848
set $cv_idx = $cv_idx + 1
@@ -482,7 +482,7 @@ end
482482

483483
define print_pi
484484
set $pi = (zend_property_info *)$arg0
485-
set $initial_offset = ((uint32_t)(zend_uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
485+
set $initial_offset = ((uint32_t)(uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
486486
set $ptr_to_val = (zval*)((char*)$pi->ce->default_properties_table + $pi->offset - $initial_offset)
487487
printf "[%p] {\n", $pi
488488
printf " offset = %p\n", $pi->offset

.gitattributes

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@
1919
*.php diff=php
2020
*.[ch] diff=cpp
2121

22-
# Collapse generated files within a pull request.
23-
**/*_arginfo.h linguist-generated
24-
/Zend/zend_vm_execute.h linguist-generated
25-
/Zend/zend_vm_opcodes.{h,c} linguist-generated
22+
# Collapse generated files within git and pull request diff.
23+
**/*_arginfo.h linguist-generated -diff
24+
/main/debug_gdb_scripts.c linguist-generated -diff
25+
/Zend/zend_vm_execute.h linguist-generated -diff
26+
/Zend/zend_vm_handlers.h linguist-generated -diff
27+
/Zend/zend_vm_opcodes.[ch] linguist-generated -diff
2628

27-
# The OSS fuzz files are bunary
29+
# The OSS fuzz files are binary
2830
/ext/date/tests/ossfuzz*.txt binary
31+
32+
# Vendored libraries
33+
/ext/lexbor/lexbor linguist-vendored
34+
/ext/uri/uriparser linguist-vendored

.github/CODEOWNERS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/.github @TimWolla
1818
/build/gen_stub.php @kocsismate
19-
/ext/bcmath @Girgias @ndossche @SakiTakamachi
19+
/ext/bcmath @ndossche @SakiTakamachi
2020
/ext/curl @adoy
2121
/ext/date @derickr
2222
/ext/dba @Girgias
@@ -25,9 +25,9 @@
2525
/ext/gd @devnexen
2626
/ext/gettext @devnexen
2727
/ext/gmp @Girgias
28-
/ext/imap @Girgias
2928
/ext/intl @devnexen
3029
/ext/json @bukka
30+
/ext/lexbor @kocsismate @ndossche
3131
/ext/libxml @ndossche
3232
/ext/mbstring @alexdowad @youkidearitai
3333
/ext/mysqli @bukka @kamil-tekiela
@@ -45,12 +45,15 @@
4545
/ext/pdo_sqlite @SakiTakamachi
4646
/ext/pgsql @devnexen
4747
/ext/random @TimWolla @zeriyoshi
48+
/ext/reflection @DanielEScherzer
4849
/ext/session @Girgias
4950
/ext/simplexml @ndossche
5051
/ext/soap @ndossche
5152
/ext/sockets @devnexen
5253
/ext/spl @Girgias
5354
/ext/standard @bukka
55+
/ext/tidy @ndossche
56+
/ext/uri @kocsismate @TimWolla
5457
/ext/xml @ndossche
5558
/ext/xmlreader @ndossche
5659
/ext/xmlwriter @ndossche

.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/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ contact_links:
33
- name: Documentation issue
44
url: https://github.com/php/doc-en/issues
55
about: Please report documentation issues on the doc-en repository.
6-
- name: Security issue
7-
url: https://bugs.php.net/report.php?security_bug
8-
about: Please report security issues in this private bug tracker.

.github/actions/apk/action.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: apk
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: sh
6+
run: |
7+
set -x
8+
9+
OPCACHE_TLS_TESTS_DEPS="clang gcc binutils-gold lld"
10+
# compiler-rt provides libclang_rt.asan-x86_64.a for clang20
11+
# https://pkgs.alpinelinux.org/contents?file=libclang_rt.asan-x86_64.a&path=&name=&branch=v3.22
12+
ASAN_DEPS="clang20 compiler-rt"
13+
14+
apk update -q
15+
apk add \
16+
util-linux \
17+
bash \
18+
sudo \
19+
build-base \
20+
autoconf \
21+
unzip \
22+
tar \
23+
bison \
24+
re2c \
25+
pkgconf \
26+
mysql-client \
27+
bzip2-dev \
28+
curl-dev \
29+
freetype-dev \
30+
gettext-dev \
31+
gnu-libiconv-dev \
32+
gmp-dev \
33+
icu-dev \
34+
icu-data-full \
35+
jpeg-dev \
36+
libffi-dev \
37+
libpng-dev \
38+
libsodium-dev \
39+
libwebp-dev \
40+
libxml2-dev \
41+
libxpm-dev \
42+
libxslt-dev \
43+
libzip-dev \
44+
oniguruma-dev \
45+
openssl-dev \
46+
readline-dev \
47+
sqlite-dev \
48+
tidyhtml-dev \
49+
gdbm-dev \
50+
lmdb-dev \
51+
argon2-dev \
52+
enchant2-dev \
53+
freetds-dev \
54+
imap-dev \
55+
net-snmp-dev \
56+
openldap-dev \
57+
unixodbc-dev \
58+
postgresql-dev \
59+
tzdata \
60+
musl-locales \
61+
musl-locales-lang \
62+
$OPCACHE_TLS_TESTS_DEPS \
63+
$ASAN_DEPS

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,27 @@ runs:
1919
g++-multilib \
2020
gcc-multilib \
2121
language-pack-de \
22-
libaspell-dev:i386 \
2322
libbz2-dev:i386 \
2423
libc6:i386 \
2524
libcurl4-openssl-dev:i386 \
2625
libffi-dev:i386 \
2726
libfreetype6-dev:i386 \
2827
libgmp-dev:i386 \
29-
libgssapi-krb5-2:i386 \
3028
libicu-dev:i386 \
3129
libjpeg-dev:i386 \
32-
libkrb5-dev:i386 \
3330
libonig-dev:i386 \
3431
libpng-dev:i386 \
3532
libpq-dev:i386 \
36-
libpspell-dev:i386 \
3733
libreadline-dev:i386 \
3834
libsasl2-dev:i386 \
3935
libsodium-dev:i386 \
4036
libsqlite3-dev:i386 \
4137
libssl-dev:i386 \
42-
libtidy-dev:i386 \
4338
libwebp-dev:i386 \
4439
libxml2-dev:i386 \
45-
libxml2-dev:i386 \
4640
libxpm-dev:i386 \
4741
libxslt1-dev:i386 \
48-
libzip-dev:i386 \
42+
firebird-dev:i386 \
4943
locales \
5044
make \
5145
pkg-config:i386 \

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

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: apt
2+
inputs:
3+
asan:
4+
default: false
5+
required: false
26
runs:
37
using: composite
48
steps:
@@ -8,8 +12,21 @@ runs:
812
913
OPCACHE_TLS_TESTS_DEPS="gcc clang lld"
1014
11-
sudo apt-get update
12-
sudo apt-get install \
15+
export DEBIAN_FRONTEND=noninteractive
16+
17+
# Install sudo in Docker for consistent actions
18+
if ! type "sudo" > /dev/null; then
19+
apt-get update -y | true
20+
apt-get install -y sudo
21+
fi
22+
23+
sudo apt-get update -y | true
24+
sudo apt-get install -y \
25+
autoconf \
26+
gcc \
27+
make \
28+
curl \
29+
unzip \
1330
bison \
1431
re2c \
1532
locales \
@@ -21,24 +38,23 @@ runs:
2138
libicu-dev \
2239
libtidy-dev \
2340
libenchant-2-dev \
24-
libaspell-dev \
25-
libpspell-dev \
41+
libbz2-dev \
2642
libsasl2-dev \
2743
libxpm-dev \
2844
libzip-dev \
2945
libsqlite3-dev \
46+
libsqlite3-mod-spatialite \
3047
libwebp-dev \
48+
${{ inputs.asan == 'false' && 'libavif-dev' || '' }} \
3149
libonig-dev \
32-
libkrb5-dev \
33-
libgssapi-krb5-2 \
3450
libcurl4-openssl-dev \
3551
libxml2-dev \
3652
libxslt1-dev \
3753
libpq-dev \
38-
libreadline-dev \
54+
libedit-dev \
3955
libldap2-dev \
4056
libsodium-dev \
41-
libargon2-0-dev \
57+
libargon2-dev \
4258
libmm-dev \
4359
libsnmp-dev \
4460
postgresql \
@@ -48,7 +64,7 @@ runs:
4864
freetds-dev \
4965
unixodbc-dev \
5066
llvm \
51-
libc-client-dev \
67+
clang \
5268
dovecot-core \
5369
dovecot-pop3d \
5470
dovecot-imapd \

0 commit comments

Comments
 (0)