[php-src] PHP-8.4: Merge branch 'PHP-8.3' into PHP-8.4

Arnaud Le Blanc <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Arnaud Le Blanc (arnaud-lb)
Date: 2026-07-16T12:13:33+02:00

Commit: https://github.com/php/php-src/commit/5fd38ba3953e38d61c01de08737bb2e73084ea7f
Raw diff: https://github.com/php/php-src/commit/5fd38ba3953e38d61c01de08737bb2e73084ea7f.diff

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  CI: Enable JIT testing on Apple Silicon ZTS 8.6+

Changed paths:
  M  .github/matrix.php
  M  .github/workflows/test-suite.yml


Diff:

diff --git a/.github/matrix.php b/.github/matrix.php
index 7970442d7050..eefb27e5ba53 100644
--- a/.github/matrix.php
+++ b/.github/matrix.php
@@ -127,7 +127,19 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
         $test_arm = version_compare($php_version, '8.4', '>=');
         $jobs['MACOS']['matrix'] = $all_variations
             ? ['arch' => $test_arm ? ['X64', 'ARM64'] : ['X64'], 'debug' => [true, false], 'zts' => [true, false]]
-            : ['include' => [['arch' => $test_arm ? 'ARM64' : 'X64', 'debug' => true, 'zts' => false]]];
+            : ['include' => [['arch' => $test_arm ? 'ARM64' : 'X64', 'debug' => true, 'zts' => false, 'jit' => true]]];
+        if ($all_variations) {
+            // Set the jit variable on X64 jobs
+            $jobs['MACOS']['matrix']['include'][] = ['arch' => 'X64', 'jit' => true];
+            if ($test_arm) {
+                // Set the jit variable on ARM64 NTS jobs
+                $jobs['MACOS']['matrix']['include'][] = ['arch' => 'ARM64', 'zts' => false, 'jit' => true];
+                // Set the jit variable on ARM64 ZTS jobs on 8.6+
+                if (version_compare($php_version, '8.6', '>=')) {
+                    $jobs['MACOS']['matrix']['include'][] = ['arch' => 'ARM64', 'zts' => true, 'jit' => true];
+                }
+            }
+        }
         $jobs['MACOS']['config']['arm64_version'] = version_compare($php_version, '8.4', '>=') ? '15' : '14';
     }
     if ($all_jobs || $test_msan) {
diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml
index b7609608f8be..efe5a650d2c6 100644
--- a/.github/workflows/test-suite.yml
+++ b/.github/workflows/test-suite.yml
@@ -345,18 +345,18 @@ jobs:
         if: ${{ inputs.all_variations }}
         uses: ./.github/actions/test-macos
       - name: Test Tracing JIT
-        if: ${{ matrix.arch == 'X64' || !matrix.zts }}
+        if: ${{ matrix.jit }}
         uses: ./.github/actions/test-macos
         with:
           enableOpcache: true
           jitType: tracing
       - name: Test OpCache
-        if: ${{ inputs.all_variations || (matrix.arch == 'ARM64' && matrix.zts) }}
+        if: ${{ inputs.all_variations }}
         uses: ./.github/actions/test-macos
         with:
           enableOpcache: true
       - name: Test Function JIT
-        if: ${{ inputs.all_variations && (matrix.arch == 'X64' || !matrix.zts) }}
+        if: ${{ inputs.all_variations && matrix.jit }}
         uses: ./.github/actions/test-macos
         with:
           enableOpcache: true
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.