Skip to content

Commit 066184f

Browse files
committed
Merge remote-tracking branch 'php/master' into tests_psalm_phpstan_phpseclib
2 parents 12b8a63 + 53e5c09 commit 066184f

File tree

9,963 files changed

+764776
-694164
lines changed

Some content is hidden

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

9,963 files changed

+764776
-694164
lines changed

.circleci/config.yml

+4-15
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: ''
@@ -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 \
@@ -111,7 +106,6 @@ jobs:
111106
--enable-exif \
112107
--with-zip \
113108
--with-zlib \
114-
--with-zlib-dir=/usr \
115109
--enable-soap \
116110
--enable-xmlreader \
117111
--with-xsl \
@@ -131,9 +125,7 @@ jobs:
131125
--enable-bcmath \
132126
--enable-calendar \
133127
--enable-ftp \
134-
--with-pspell=/usr \
135128
--with-enchant=/usr \
136-
--with-kerberos \
137129
--enable-sysvmsg \
138130
--with-ffi \
139131
--enable-zend-test \
@@ -152,12 +144,7 @@ jobs:
152144
--with-qdbm \
153145
--with-snmp \
154146
`#--with-unixODBC` \
155-
--with-imap \
156-
--with-kerberos \
157-
--with-imap-ssl \
158147
`#--with-pdo-odbc=unixODBC,/usr` \
159-
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient` \
160-
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient` \
161148
--with-config-file-path=/etc \
162149
--with-config-file-scan-dir=/etc/php.d \
163150
--with-pdo-firebird \
@@ -182,8 +169,10 @@ jobs:
182169
sapi/cli/php run-tests.php \
183170
-d zend_extension=opcache.so \
184171
-d opcache.enable_cli=1 \
185-
-d opcache.jit_buffer_size=16M \
172+
-d opcache.jit_buffer_size=64M \
186173
-d opcache.jit=tracing \
174+
-d zend_test.observer.enabled=1 \
175+
-d zend_test.observer.show_output=0 \
187176
-P -q -x -j2 \
188177
-g FAIL,BORK,LEAK,XLEAK \
189178
--no-progress \

.cirrus.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@ env:
33

44
freebsd_task:
55
name: FREEBSD_DEBUG_NTS
6+
timeout_in: 50m
67
freebsd_instance:
7-
image_family: freebsd-13-2
8+
image_family: freebsd-13-3
9+
skip: "changesIncludeOnly('docs/**', 'NEWS', 'UPGRADING', 'UPGRADING.INTERNALS', '**/README.*', 'CONTRIBUTING.md', 'CODING_STANDARDS.md', '.circleci/**', 'EXTENSIONS', '**.md', 'docs-old/**')"
810
env:
911
ARCH: amd64
1012
install_script:
1113
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
1214
#- pkg upgrade -y
1315
- kldload accf_http
14-
- pkg install -y autoconf bison gmake re2c icu libiconv png freetype2 enchant2 bzip2 krb5 t1lib gmp tidyp libsodium libzip libxml2 libxslt openssl oniguruma pkgconf webp libavif
16+
- pkg install -y autoconf bison gmake re2c icu libiconv png freetype2 enchant2 bzip2 t1lib gmp tidyp libsodium libzip libxml2 libxslt openssl oniguruma pkgconf webp libavif
1517
script:
1618
- ./buildconf -f
17-
- ./configure --prefix=/usr/local --enable-debug --enable-option-checking=fatal --enable-fpm --with-pdo-sqlite --without-pear --with-bz2 --with-avif --with-jpeg --with-webp --with-freetype --enable-gd --enable-exif --with-zip --with-zlib --enable-soap --enable-xmlreader --with-xsl --with-libxml --enable-shmop --enable-pcntl --enable-mbstring --with-curl --enable-sockets --with-openssl --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp --with-kerberos --with-ffi --enable-zend-test --enable-dl-test=shared --enable-intl --with-mhash --with-sodium --enable-werror --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
19+
- ./configure --prefix=/usr/local --enable-debug --enable-option-checking=fatal --enable-fpm --with-pdo-sqlite --without-pear --with-bz2 --with-avif --with-jpeg --with-webp --with-freetype --enable-gd --enable-exif --with-zip --with-zlib --enable-soap --enable-xmlreader --with-xsl --with-libxml --enable-shmop --enable-pcntl --enable-mbstring --with-curl --enable-sockets --with-openssl --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp --with-ffi --enable-zend-test --enable-dl-test=shared --enable-intl --with-mhash --with-sodium --enable-werror --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
1820
- gmake -j2
1921
- mkdir /etc/php.d
2022
- gmake install
@@ -25,4 +27,5 @@ freebsd_task:
2527
tests_script:
2628
- export SKIP_IO_CAPTURE_TESTS=1
2729
- export CI_NO_IPV6=1
30+
- export STACK_LIMIT_DEFAULTS_CHECK=1
2831
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,BORK,LEAK,XLEAK --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so

.gdbinit

+1-1
Original file line numberDiff line numberDiff line change
@@ -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

+10-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@
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/gdb_inlined_script.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/dom/lexbor/lexbor linguist-vendored

.github/CODEOWNERS

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# The following volunteers have self-identified as subject matter experts
2+
# or interested parties over a particular area of the php-src source code.
3+
# While requesting a review from someone does not obligate that person to
4+
# review a pull request, these reviewers might have valuable knowledge of
5+
# the problem area and could aid in deciding whether a pull request is ready
6+
# for merging.
7+
#
8+
# When changing this file, please make sure to commit the changes to the
9+
# earliest supported PHP branch (PHP-X.Y) and not only to the master branch.
10+
# GitHub reads the CODEOWNERS file from the pull request's targeted branch.
11+
# Commit changes here similar to bug fixes:
12+
# https://github.com/php/php-src/blob/master/CONTRIBUTING.md#pull-requests
13+
#
14+
# For more information, see the GitHub CODEOWNERS documentation:
15+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
16+
17+
/.github @TimWolla
18+
/build/gen_stub.php @kocsismate
19+
/ext/bcmath @Girgias @nielsdos @SakiTakamachi
20+
/ext/curl @adoy
21+
/ext/date @derickr
22+
/ext/dba @Girgias
23+
/ext/dom @nielsdos
24+
/ext/ffi @dstogov
25+
/ext/gd @devnexen
26+
/ext/gettext @devnexen
27+
/ext/gmp @Girgias
28+
/ext/intl @devnexen
29+
/ext/json @bukka
30+
/ext/libxml @nielsdos
31+
/ext/mbstring @alexdowad @youkidearitai
32+
/ext/mysqlnd @SakiTakamachi
33+
/ext/odbc @NattyNarwhal
34+
/ext/opcache @dstogov
35+
/ext/openssl @bukka
36+
/ext/pcntl @devnexen
37+
/ext/pdo @SakiTakamachi
38+
/ext/pdo_dblib @SakiTakamachi
39+
/ext/pdo_firebird @SakiTakamachi
40+
/ext/pdo_mysql @SakiTakamachi
41+
/ext/pdo_odbc @NattyNarwhal @SakiTakamachi
42+
/ext/pdo_pgsql @devnexen @SakiTakamachi
43+
/ext/pdo_sqlite @SakiTakamachi
44+
/ext/pgsql @devnexen
45+
/ext/random @TimWolla @zeriyoshi
46+
/ext/session @Girgias
47+
/ext/simplexml @nielsdos
48+
/ext/soap @nielsdos
49+
/ext/sockets @devnexen
50+
/ext/spl @Girgias
51+
/ext/standard @bukka
52+
/ext/xml @nielsdos
53+
/ext/xmlreader @nielsdos
54+
/ext/xmlwriter @nielsdos
55+
/ext/xsl @nielsdos
56+
/main @bukka
57+
/sapi/fpm @bukka
58+
/Zend/Optimizer @dstogov
59+
/Zend/zend.* @dstogov
60+
/Zend/zend_alloc.* @dstogov
61+
/Zend/zend_API.* @dstogov
62+
/Zend/zend_call_stack.* @arnaud-lb
63+
/Zend/zend_closures.* @dstogov
64+
/Zend/zend_execute.* @dstogov
65+
/Zend/zend_execute_API.c @dstogov
66+
/Zend/zend_gc.* @dstogov @arnaud-lb
67+
/Zend/zend_hash.* @dstogov
68+
/Zend/zend_inheritance.* @dstogov
69+
/Zend/zend_max_execution_timer.* @arnaud-lb
70+
/Zend/zend_object_handlers.* @dstogov
71+
/Zend/zend_objects.* @dstogov
72+
/Zend/zend_objects_API.* @dstogov
73+
/Zend/zend_opcode.* @dstogov
74+
/Zend/zend_string.* @dstogov
75+
/Zend/zend_type*.h @dstogov
76+
/Zend/zend_variables.* @dstogov
77+
/Zend/zend_vm* @dstogov
78+
*.stub.php @kocsismate

.github/ISSUE_TEMPLATE/config.yml

-3
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

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: apk
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: sh
6+
run: |
7+
set -x
8+
9+
apk update -q
10+
apk add \
11+
util-linux \
12+
bash \
13+
sudo \
14+
build-base \
15+
autoconf \
16+
unzip \
17+
tar \
18+
bison \
19+
re2c \
20+
pkgconf \
21+
mysql-client \
22+
bzip2-dev \
23+
curl-dev \
24+
freetype-dev \
25+
gettext-dev \
26+
gnu-libiconv-dev \
27+
gmp-dev \
28+
icu-dev \
29+
icu-data-full \
30+
jpeg-dev \
31+
libffi-dev \
32+
libpng-dev \
33+
libsodium-dev \
34+
libwebp-dev \
35+
libxml2-dev \
36+
libxpm-dev \
37+
libxslt-dev \
38+
libzip-dev \
39+
oniguruma-dev \
40+
openssl-dev \
41+
readline-dev \
42+
sqlite-dev \
43+
tidyhtml-dev \
44+
gdbm-dev \
45+
lmdb-dev \
46+
argon2-dev \
47+
enchant2-dev \
48+
freetds-dev \
49+
imap-dev \
50+
net-snmp-dev \
51+
openldap-dev \
52+
unixodbc-dev \
53+
postgresql14-dev \
54+
tzdata \
55+
musl-locales \
56+
musl-locales-lang

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

-6
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,27 @@ runs:
1717
g++-multilib \
1818
gcc-multilib \
1919
language-pack-de \
20-
libaspell-dev:i386 \
2120
libbz2-dev:i386 \
2221
libc6:i386 \
2322
libcurl4-openssl-dev:i386 \
2423
libffi-dev:i386 \
2524
libfreetype6-dev:i386 \
2625
libgmp-dev:i386 \
27-
libgssapi-krb5-2:i386 \
2826
libicu-dev:i386 \
2927
libjpeg-dev:i386 \
30-
libkrb5-dev:i386 \
3128
libonig-dev:i386 \
3229
libpng-dev:i386 \
3330
libpq-dev:i386 \
34-
libpspell-dev:i386 \
3531
libreadline-dev:i386 \
3632
libsasl2-dev:i386 \
3733
libsodium-dev:i386 \
3834
libsqlite3-dev:i386 \
3935
libssl-dev:i386 \
40-
libtidy-dev:i386 \
4136
libwebp-dev:i386 \
4237
libxml2-dev:i386 \
4338
libxml2-dev:i386 \
4439
libxpm-dev:i386 \
4540
libxslt1-dev:i386 \
46-
libzip-dev:i386 \
4741
locales \
4842
make \
4943
pkg-config:i386 \

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

+25-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
name: apt
2+
inputs:
3+
asan:
4+
default: false
5+
required: false
26
runs:
37
using: composite
48
steps:
59
- shell: bash
610
run: |
711
set -x
812
9-
sudo apt-get update
10-
sudo apt-get install \
13+
export DEBIAN_FRONTEND=noninteractive
14+
15+
# Install sudo in Docker for consistent actions
16+
if ! type "sudo" > /dev/null; then
17+
apt-get update -y | true
18+
apt-get install -y sudo
19+
fi
20+
21+
sudo apt-get update -y | true
22+
sudo apt-get install -y \
23+
autoconf \
24+
gcc \
25+
make \
26+
curl \
27+
unzip \
1128
bison \
1229
re2c \
1330
locales \
@@ -19,24 +36,23 @@ runs:
1936
libicu-dev \
2037
libtidy-dev \
2138
libenchant-2-dev \
22-
libaspell-dev \
23-
libpspell-dev \
39+
libbz2-dev \
2440
libsasl2-dev \
2541
libxpm-dev \
2642
libzip-dev \
2743
libsqlite3-dev \
44+
libsqlite3-mod-spatialite \
2845
libwebp-dev \
46+
${{ inputs.asan == 'false' && 'libavif-dev' || '' }} \
2947
libonig-dev \
30-
libkrb5-dev \
31-
libgssapi-krb5-2 \
3248
libcurl4-openssl-dev \
3349
libxml2-dev \
3450
libxslt1-dev \
3551
libpq-dev \
36-
libreadline-dev \
52+
libedit-dev \
3753
libldap2-dev \
3854
libsodium-dev \
39-
libargon2-0-dev \
55+
libargon2-dev \
4056
libmm-dev \
4157
libsnmp-dev \
4258
postgresql \
@@ -46,7 +62,7 @@ runs:
4662
freetds-dev \
4763
unixodbc-dev \
4864
llvm \
49-
libc-client-dev \
65+
clang \
5066
dovecot-core \
5167
dovecot-pop3d \
5268
dovecot-imapd \

0 commit comments

Comments
 (0)