Skip to content

Commit 4dba11a

Browse files
Merge pull request #2 from php/master
sync
2 parents e076ffc + f3d8f09 commit 4dba11a

File tree

685 files changed

+38324
-15608
lines changed

Some content is hidden

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

685 files changed

+38324
-15608
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ task:
2525
tests_script:
2626
- export SKIP_IO_CAPTURE_TESTS=1
2727
- export CI_NO_IPV6=1
28-
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,BORK,LEAK,XLEAK --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so
28+
- 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

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ runs:
55
- shell: bash
66
run: |
77
set -x
8+
89
sudo apt-get update
910
sudo apt-get install \
1011
bison \
@@ -58,11 +59,15 @@ runs:
5859
libjpeg-dev \
5960
libpng-dev \
6061
libfreetype6-dev
62+
6163
mkdir /opt/oracle
6264
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
6365
unzip instantclient-basiclite-linuxx64.zip && rm instantclient-basiclite-linuxx64.zip
6466
wget -nv https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
6567
unzip instantclient-sdk-linuxx64.zip && rm instantclient-sdk-linuxx64.zip
6668
mv instantclient_*_* /opt/oracle/instantclient
67-
# Interferes with libldap2 headers.
69+
# interferes with libldap2 headers
6870
rm /opt/oracle/instantclient/sdk/include/ldap.h
71+
# fix debug build warning: zend_signal: handler was replaced for signal (2) after startup
72+
echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora
73+
sudo sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig'

.github/actions/brew/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ runs:
2727
gd \
2828
libzip \
2929
gmp \
30-
tidyp \
30+
tidy-html5 \
3131
libxml2 \
32+
libjpeg \
3233
libxslt \
3334
postgresql
3435
brew link icu4c gettext --force

.github/actions/configure-macos/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
--enable-soap \
3939
--enable-xmlreader \
4040
--with-xsl \
41-
--with-tidy=/usr/local/opt/tidyp \
41+
--with-tidy=/usr/local/opt/tidy-html5 \
4242
--with-libxml \
4343
--enable-sysvsem \
4444
--enable-sysvshm \

.github/actions/install-linux/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ runs:
1010
sudo chmod 777 /etc/php.d
1111
echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini
1212
echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini
13+
echo extension=oci8.so > /etc/php.d/oci8.ini
14+
echo extension=pdo_oci.so > /etc/php.d/pdo_oci.ini

.github/actions/mssql/action.yml renamed to .github/actions/setup-mssql/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create mssql container
1+
name: Create MSSQL container
22
runs:
33
using: composite
44
steps:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Create Oracle container
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
set -x
8+
docker run \
9+
-e "ORACLE_PASSWORD=pass" \
10+
-p 1521:1521 \
11+
--name oracle \
12+
-h oracle \
13+
-d gvenzl/oracle-xe:slim

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
1818
sudo locale-gen de_DE
1919
20-
./.github/scripts/setup-slapd.sh
20+
./.github/scripts/setup-slapd.sh &>/dev/null
2121
2222
sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
2323
sudo cp ext/snmp/tests/bigtest /etc/snmp

.github/actions/test-linux/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ runs:
2020
export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
2121
export PDO_DBLIB_TEST_USER="pdo_test"
2222
export PDO_DBLIB_TEST_PASS="password"
23+
export PHP_OCI8_TEST_USER="system"
24+
export PHP_OCI8_TEST_PASS="pass"
25+
export PHP_OCI8_TEST_DB="localhost/XEPDB1"
26+
export PDO_OCI_TEST_USER="system"
27+
export PDO_OCI_TEST_PASS="pass"
28+
export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
2329
export SKIP_IO_CAPTURE_TESTS=1
2430
export TEST_PHP_JUNIT=junit.out.xml
2531
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
2632
-j$(/usr/bin/nproc) \
2733
-g FAIL,BORK,LEAK,XLEAK \
34+
--no-progress \
2835
--offline \
2936
--show-diff \
3037
--show-slow 1000 \

.github/actions/test-macos/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ runs:
1818
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
1919
-j$(sysctl -n hw.ncpu) \
2020
-g FAIL,BORK,LEAK,XLEAK \
21+
--no-progress \
2122
--offline \
2223
--show-diff \
2324
--show-slow 1000 \

.github/nightly_matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
const BRANCHES = ['master', 'PHP-8.1', 'PHP-8.0'];
3+
const BRANCHES = ['master', 'PHP-8.2', 'PHP-8.1', 'PHP-8.0'];
44

55
function get_branch_commit_cache_file_path(): string {
66
return dirname(__DIR__) . '/branch-commit-cache.json';

.github/workflows/close-needs-feedback.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
if: github.repository_owner == 'php'
1013
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
1117
steps:
1218
- name: Close old issues that need feedback
1319
uses: dwieeb/needs-reply@v2

.github/workflows/close-stale-feature-requests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
stale:
912
if: github.repository_owner == 'php'
1013
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
1117
steps:
1218
- uses: actions/stale@v4
1319
with:
14-
days-before-close: 7
20+
days-before-close: 14
1521
days-before-stale: 90
1622
exempt-all-assignees: true
1723
only-issue-labels: "Status: Requires RFC,Feature"
1824
# Hack to skip PRs, unfortunately there's no option to disable PRs
1925
only-pr-labels: inexistent-label
2026
stale-issue-message: >-
21-
There has not been any recent activity in this feature request. It will automatically be closed in 7 days
27+
There has not been any recent activity in this feature request. It will automatically be closed in 14 days
2228
if no further action is taken. Please see https://github.com/probot/stale#is-closing-stale-issues-really-a-good-idea
2329
to understand why we auto-close stale feature requests.

.github/workflows/close-stale-prs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
stale:
912
if: github.repository_owner == 'php'
1013
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
1117
steps:
1218
- uses: actions/stale@v4
1319
with:

.github/workflows/nightly.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
schedule:
44
- cron: "0 1 * * *"
55
workflow_dispatch: ~
6+
permissions:
7+
contents: read
68
jobs:
79
GENERATE_MATRIX:
810
name: Generate Matrix
@@ -47,8 +49,10 @@ jobs:
4749
uses: actions/checkout@v2
4850
with:
4951
ref: ${{ matrix.branch.ref }}
50-
- name: Create mssql container
51-
uses: ./.github/actions/mssql
52+
- name: Create MSSQL container
53+
uses: ./.github/actions/setup-mssql
54+
- name: Create Oracle container
55+
uses: ./.github/actions/setup-oracle
5256
- name: apt
5357
uses: ./.github/actions/apt-x64
5458
- name: ./configure
@@ -109,7 +113,7 @@ jobs:
109113
debug: [true, false]
110114
zts: [true, false]
111115
name: "${{ matrix.branch.name }}_MACOS_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
112-
runs-on: macos-10.15
116+
runs-on: macos-11
113117
steps:
114118
- name: git checkout
115119
uses: actions/checkout@v2
@@ -167,8 +171,10 @@ jobs:
167171
steps:
168172
- name: git checkout
169173
uses: actions/checkout@v2
170-
- name: Create mssql container
171-
uses: ./.github/actions/mssql
174+
- name: Create MSSQL container
175+
uses: ./.github/actions/setup-mssql
176+
- name: Create Oracle container
177+
uses: ./.github/actions/setup-oracle
172178
- name: apt
173179
uses: ./.github/actions/apt-x64
174180
- name: Install gcovr

.github/workflows/push.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ on:
1313
- PHP-7.4
1414
- PHP-8.0
1515
- PHP-8.1
16+
- PHP-8.2
1617
- master
1718
pull_request:
1819
branches:
1920
- '**'
21+
permissions:
22+
contents: read
2023
jobs:
2124
LINUX_X64:
2225
strategy:
@@ -32,8 +35,10 @@ jobs:
3235
steps:
3336
- name: git checkout
3437
uses: actions/checkout@v2
35-
- name: Create mssql container
36-
uses: ./.github/actions/mssql
38+
- name: Create MSSQL container
39+
uses: ./.github/actions/setup-mssql
40+
- name: Create Oracle container
41+
uses: ./.github/actions/setup-oracle
3742
- name: apt
3843
uses: ./.github/actions/apt-x64
3944
- name: ./configure
@@ -63,7 +68,7 @@ jobs:
6368
- name: Verify generated files are up to date
6469
uses: ./.github/actions/verify-generated-files
6570
MACOS_DEBUG_NTS:
66-
runs-on: macos-10.15
71+
runs-on: macos-11
6772
steps:
6873
- name: git checkout
6974
uses: actions/checkout@v2

.github/workflows/remove-needs-feedback.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ on:
55
types:
66
- created
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
if: "github.repository_owner == 'php' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login"
1114
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
1218
steps:
1319
- uses: actions-ecosystem/action-remove-labels@v1
1420
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ php
202202
# Generated by x64 compiler, includes Debug, Debug_TS, Release, Release_TS
203203
/x64/
204204

205+
# Generated by arm64 compiler, includes Debug, Debug_TS, Release, Release_TS
206+
/arm64/
207+
205208
# Miscellaneous files generated by Windows build system
206209
/main/config.w32.h
207210
/win32/build/deplister.exe

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ Currently we have the following branches in use:
331331

332332
| Branch | |
333333
| --------- | --------- |
334-
| master | Active development branch for PHP 8.2, which is open for backwards incompatible changes and major internal API changes. |
334+
| master | Active development branch for PHP 8.3, which is open for backwards incompatible changes and major internal API changes. |
335+
| PHP-8.2 | Is used to release the PHP 8.2.x series. This is a current stable version and is open for bugfixes only. |
335336
| PHP-8.1 | Is used to release the PHP 8.1.x series. This is a current stable version and is open for bugfixes only. |
336337
| PHP-8.0 | Is used to release the PHP 8.0.x series. This is a current stable version and is open for bugfixes only. |
337338
| PHP-7.4 | Is used to release the PHP 7.4.x series. This is an old stable version and is open for security fixes only. |

0 commit comments

Comments
 (0)