Skip to content

Commit af5cdd8

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Minimal backport of 098d9ca
2 parents 6f8261e + 36a87e6 commit af5cdd8

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ inputs:
66
runTestsParameters:
77
default: ''
88
required: false
9+
jitType:
10+
default: 'disable'
11+
required: false
912
runs:
1013
using: composite
1114
steps:
@@ -31,6 +34,7 @@ runs:
3134
export SKIP_IO_CAPTURE_TESTS=1
3235
export TEST_PHP_JUNIT=junit.out.xml
3336
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
37+
-d opcache.jit=${{ inputs.jitType }} \
3438
-j$(/usr/bin/nproc) \
3539
-g FAIL,BORK,LEAK,XLEAK \
3640
--no-progress \

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ inputs:
66
runTestsParameters:
77
default: ''
88
required: false
9+
jitType:
10+
default: 'disable'
11+
required: false
912
runs:
1013
using: composite
1114
steps:
@@ -16,6 +19,7 @@ runs:
1619
export CI_NO_IPV6=1
1720
export TEST_PHP_JUNIT=junit.out.xml
1821
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
22+
-d opcache.jit=${{ inputs.jitType }} \
1923
-j$(sysctl -n hw.ncpu) \
2024
-g FAIL,BORK,LEAK,XLEAK \
2125
--no-progress \

.github/workflows/nightly.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
uses: ./.github/actions/test-linux
8787
with:
8888
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
89+
jitType: tracing
8990
runTestsParameters: >-
9091
${{ matrix.run_tests_parameters }}
9192
-d zend_extension=opcache.so
@@ -106,12 +107,12 @@ jobs:
106107
uses: ./.github/actions/test-linux
107108
with:
108109
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Function JIT
110+
jitType: function
109111
runTestsParameters: >-
110112
${{ matrix.run_tests_parameters }}
111113
-d zend_extension=opcache.so
112114
-d opcache.enable_cli=1
113115
-d opcache.jit_buffer_size=16M
114-
-d opcache.jit=1205
115116
- name: Verify generated files are up to date
116117
uses: ./.github/actions/verify-generated-files
117118
- name: Notify Slack
@@ -169,6 +170,7 @@ jobs:
169170
- name: Test Tracing JIT
170171
uses: ./.github/actions/test-linux
171172
with:
173+
jitType: tracing
172174
runTestsParameters: >-
173175
${{ matrix.run_tests_parameters }}
174176
-d zend_extension=opcache.so
@@ -184,12 +186,12 @@ jobs:
184186
- name: Test Function JIT
185187
uses: ./.github/actions/test-linux
186188
with:
189+
jitType: function
187190
runTestsParameters: >-
188191
${{ matrix.run_tests_parameters }}
189192
-d zend_extension=opcache.so
190193
-d opcache.enable_cli=1
191194
-d opcache.jit_buffer_size=16M
192-
-d opcache.jit=1205
193195
- name: Notify Slack
194196
if: failure()
195197
uses: ./.github/actions/notify-slack
@@ -233,6 +235,7 @@ jobs:
233235
uses: ./.github/actions/test-macos
234236
with:
235237
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
238+
jitType: tracing
236239
runTestsParameters: >-
237240
-d zend_extension=opcache.so
238241
-d opcache.enable_cli=1
@@ -250,12 +253,12 @@ jobs:
250253
uses: ./.github/actions/test-macos
251254
with:
252255
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Function JIT
256+
jitType: function
253257
runTestsParameters: >-
254258
-d zend_extension=opcache.so
255259
-d opcache.enable_cli=1
256260
-d opcache.protect_memory=1
257261
-d opcache.jit_buffer_size=16M
258-
-d opcache.jit=1205
259262
- name: Verify generated files are up to date
260263
uses: ./.github/actions/verify-generated-files
261264
- name: Notify Slack

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
uses: ./.github/actions/test-linux
9090
with:
9191
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
92+
jitType: tracing
9293
runTestsParameters: >-
9394
-d zend_extension=opcache.so
9495
-d opcache.enable_cli=1
@@ -121,6 +122,7 @@ jobs:
121122
uses: ./.github/actions/test-macos
122123
with:
123124
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
125+
jitType: tracing
124126
runTestsParameters: >-
125127
-d zend_extension=opcache.so
126128
-d opcache.enable_cli=1

0 commit comments

Comments
 (0)