Skip to content

Commit f7a7497

Browse files
Merge branch 'php:master' into patch-2
2 parents da1e3d9 + a578c27 commit f7a7497

File tree

7,461 files changed

+690170
-667870
lines changed

Some content is hidden

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

7,461 files changed

+690170
-667870
lines changed

.circleci/config.yml

Lines changed: 1 addition & 14 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 \
@@ -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,7 +169,7 @@ 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 \
187174
-d zend_test.observer.enabled=1 \
188175
-d zend_test.observer.show_output=0 \

.cirrus.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ freebsd_task:
1111
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
1212
#- pkg upgrade -y
1313
- 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
14+
- 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
1515
script:
1616
- ./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 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
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-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
1818
- gmake -j2
1919
- mkdir /etc/php.d
2020
- gmake install
@@ -25,4 +25,5 @@ freebsd_task:
2525
tests_script:
2626
- export SKIP_IO_CAPTURE_TESTS=1
2727
- export CI_NO_IPV6=1
28+
- export STACK_LIMIT_DEFAULTS_CHECK=1
2829
- 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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 10 additions & 5 deletions
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

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,52 @@
55
# the problem area and could aid in deciding whether a pull request is ready
66
# for merging.
77
#
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+
#
814
# For more information, see the GitHub CODEOWNERS documentation:
915
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
1016

1117
/.github @iluuu1994 @TimWolla
1218
/build/gen_stub.php @kocsismate
13-
/ext/bcmath @Girgias
19+
/ext/bcmath @Girgias @nielsdos @SakiTakamachi
1420
/ext/curl @adoy
1521
/ext/date @derickr
1622
/ext/dba @Girgias
1723
/ext/dom @nielsdos
1824
/ext/ffi @dstogov
25+
/ext/gd @devnexen
1926
/ext/gettext @devnexen
2027
/ext/gmp @Girgias
21-
/ext/imap @Girgias
2228
/ext/intl @devnexen
2329
/ext/json @bukka
2430
/ext/libxml @nielsdos
25-
/ext/mbstring @alexdowad
31+
/ext/mbstring @alexdowad @youkidearitai
32+
/ext/mysqlnd @SakiTakamachi
2633
/ext/odbc @NattyNarwhal
2734
/ext/opcache @dstogov @iluuu1994
2835
/ext/openssl @bukka
29-
/ext/pdo_odbc @NattyNarwhal
30-
/ext/pdo_pgsql @devnexen
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
3144
/ext/pgsql @devnexen
3245
/ext/random @TimWolla @zeriyoshi
3346
/ext/session @Girgias
47+
/ext/simplexml @nielsdos
3448
/ext/sockets @devnexen
3549
/ext/spl @Girgias
3650
/ext/standard @bukka
51+
/ext/xml @nielsdos
3752
/ext/xmlreader @nielsdos
53+
/ext/xmlwriter @nielsdos
3854
/ext/xsl @nielsdos
3955
/main @bukka
4056
/sapi/fpm @bukka
@@ -44,8 +60,11 @@
4460
/Zend/zend_API.* @dstogov @iluuu1994
4561
/Zend/zend_call_stack.* @arnaud-lb
4662
/Zend/zend_closures.* @dstogov
63+
/Zend/zend_compile.* @iluuu1994
64+
/Zend/zend_enum.* @iluuu1994
4765
/Zend/zend_execute.* @dstogov @iluuu1994
4866
/Zend/zend_execute_API.c @dstogov @iluuu1994
67+
/Zend/zend_frameless_function.* @iluuu1994
4968
/Zend/zend_gc.* @dstogov @arnaud-lb
5069
/Zend/zend_hash.* @dstogov
5170
/Zend/zend_inheritance.* @dstogov @iluuu1994

.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/apt-x32/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,17 @@ 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 \

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

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@ runs:
66
run: |
77
set -x
88
9-
sudo apt-get update
10-
sudo apt-get install \
9+
export DEBIAN_FRONTEND=noninteractive
10+
11+
# Install sudo in Docker for consistent actions
12+
if ! type "sudo" > /dev/null; then
13+
apt-get update -y | true
14+
apt-get install -y sudo
15+
fi
16+
17+
sudo apt-get update -y | true
18+
sudo apt-get install -y \
19+
autoconf \
20+
gcc \
21+
make \
22+
curl \
23+
unzip \
1124
bison \
1225
re2c \
1326
locales \
@@ -19,16 +32,14 @@ runs:
1932
libicu-dev \
2033
libtidy-dev \
2134
libenchant-2-dev \
22-
libaspell-dev \
23-
libpspell-dev \
35+
libbz2-dev \
2436
libsasl2-dev \
2537
libxpm-dev \
2638
libzip-dev \
2739
libsqlite3-dev \
40+
libsqlite3-mod-spatialite \
2841
libwebp-dev \
2942
libonig-dev \
30-
libkrb5-dev \
31-
libgssapi-krb5-2 \
3243
libcurl4-openssl-dev \
3344
libxml2-dev \
3445
libxslt1-dev \
@@ -46,7 +57,7 @@ runs:
4657
freetds-dev \
4758
unixodbc-dev \
4859
llvm \
49-
libc-client-dev \
60+
clang \
5061
dovecot-core \
5162
dovecot-pop3d \
5263
dovecot-imapd \

.github/actions/brew/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ runs:
1919
brew install \
2020
2121
curl \
22-
krb5 \
2322
bzip2 \
2423
enchant \
2524
libffi \
@@ -37,6 +36,7 @@ runs:
3736
tidy-html5 \
3837
libxml2 \
3938
libjpeg \
39+
libsodium \
4040
libxslt \
4141
postgresql
4242
brew link icu4c gettext --force

.github/actions/build-libmysqlclient/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ runs:
1515
set -x
1616
LIBMYSQL=${{ inputs.libmysql }}
1717
MYSQL_BASE=${LIBMYSQL%%-linux-*}
18-
MYSQL_VERSION=${MYSQL_BASE#*-}
1918
MYSQL_DIR=$HOME/$MYSQL_BASE
2019
mkdir -p $MYSQL_DIR
21-
URL=https://cdn.mysql.com/Downloads/MySQL-${MYSQL_VERSION%.*}/$LIBMYSQL
20+
URL=https://downloads.mysql.com/archives/get/p/23/file/$LIBMYSQL
2221
wget -nv $URL
2322
tar -xf $LIBMYSQL --strip-components=1 -C $MYSQL_DIR
2423
PDO_MYSQL=${MYSQL_DIR}

0 commit comments

Comments
 (0)