Skip to content

Commit a2d25af

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Minimal backport of 098d9ca
2 parents 20d2ecf + af5cdd8 commit a2d25af

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:
@@ -38,6 +41,7 @@ runs:
3841
export TEST_PHP_JUNIT=junit.out.xml
3942
export STACK_LIMIT_DEFAULTS_CHECK=1
4043
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
44+
-d opcache.jit=${{ inputs.jitType }} \
4145
-j$(/usr/bin/nproc) \
4246
-g FAIL,BORK,LEAK,XLEAK \
4347
--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:
@@ -17,6 +20,7 @@ runs:
1720
export TEST_PHP_JUNIT=junit.out.xml
1821
export STACK_LIMIT_DEFAULTS_CHECK=1
1922
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
23+
-d opcache.jit=${{ inputs.jitType }} \
2024
-j$(sysctl -n hw.ncpu) \
2125
-g FAIL,BORK,LEAK,XLEAK \
2226
--no-progress \

.github/workflows/nightly.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
uses: ./.github/actions/test-linux
114114
with:
115115
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
116+
jitType: tracing
116117
runTestsParameters: >-
117118
${{ matrix.run_tests_parameters }}
118119
-d zend_extension=opcache.so
@@ -133,12 +134,12 @@ jobs:
133134
uses: ./.github/actions/test-linux
134135
with:
135136
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Function JIT
137+
jitType: function
136138
runTestsParameters: >-
137139
${{ matrix.run_tests_parameters }}
138140
-d zend_extension=opcache.so
139141
-d opcache.enable_cli=1
140142
-d opcache.jit_buffer_size=16M
141-
-d opcache.jit=1205
142143
- name: Verify generated files are up to date
143144
uses: ./.github/actions/verify-generated-files
144145
- name: Notify Slack
@@ -204,6 +205,7 @@ jobs:
204205
- name: Test Tracing JIT
205206
uses: ./.github/actions/test-linux
206207
with:
208+
jitType: tracing
207209
runTestsParameters: >-
208210
${{ matrix.run_tests_parameters }}
209211
-d zend_extension=opcache.so
@@ -219,12 +221,12 @@ jobs:
219221
- name: Test Function JIT
220222
uses: ./.github/actions/test-linux
221223
with:
224+
jitType: function
222225
runTestsParameters: >-
223226
${{ matrix.run_tests_parameters }}
224227
-d zend_extension=opcache.so
225228
-d opcache.enable_cli=1
226229
-d opcache.jit_buffer_size=16M
227-
-d opcache.jit=1205
228230
- name: Notify Slack
229231
if: failure()
230232
uses: ./.github/actions/notify-slack
@@ -268,6 +270,7 @@ jobs:
268270
uses: ./.github/actions/test-macos
269271
with:
270272
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
273+
jitType: tracing
271274
runTestsParameters: >-
272275
-d zend_extension=opcache.so
273276
-d opcache.enable_cli=1
@@ -285,12 +288,12 @@ jobs:
285288
uses: ./.github/actions/test-macos
286289
with:
287290
testArtifacts: ${{ matrix.branch.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Function JIT
291+
jitType: function
288292
runTestsParameters: >-
289293
-d zend_extension=opcache.so
290294
-d opcache.enable_cli=1
291295
-d opcache.protect_memory=1
292296
-d opcache.jit_buffer_size=16M
293-
-d opcache.jit=1205
294297
- name: Verify generated files are up to date
295298
uses: ./.github/actions/verify-generated-files
296299
- name: Notify Slack

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ jobs:
126126
uses: ./.github/actions/test-linux
127127
with:
128128
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}_${{ matrix.asan && 'OpCache' || 'Tracing JIT' }}
129+
jitType: tracing
129130
runTestsParameters: >-
130131
-d zend_extension=opcache.so
131132
-d opcache.enable_cli=1
@@ -160,6 +161,7 @@ jobs:
160161
uses: ./.github/actions/test-macos
161162
with:
162163
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
164+
jitType: tracing
163165
runTestsParameters: >-
164166
-d zend_extension=opcache.so
165167
-d opcache.enable_cli=1

0 commit comments

Comments
 (0)