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

Ilija Tovilo <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Ilija Tovilo (iluuu1994)
Date: 2026-08-15T23:53:01+02:00

Commit: https://github.com/php/php-src/commit/1f074055bf599ea22de2f856e3d9ac7cf6480f32
Raw diff: https://github.com/php/php-src/commit/1f074055bf599ea22de2f856e3d9ac7cf6480f32.diff

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix enabling of opcache in community job for PHP <8.5

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


Diff:

diff --git a/.github/matrix.php b/.github/matrix.php
index 88e505d1f1eb..ee9cb4eb05ab 100644
--- a/.github/matrix.php
+++ b/.github/matrix.php
@@ -73,7 +73,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
         && ($all_jobs || !$no_jobs || $test_benchmarking)
         // push trigger is restricted to official repository.
         && ($repository === 'php/php-src' || $trigger === 'pull_request')) {
-        $jobs['BENCHMARKING']['config']['integrated_opcache'] = version_compare($php_version, '8.5', '>=');
+        $jobs['BENCHMARKING'] = true;
     }
     if ($all_jobs || $test_community) {
         $jobs['COMMUNITY']['matrix'] = version_compare($php_version, '8.4', '>=')
@@ -189,6 +189,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
     $branch['jobs'] = select_jobs($repository, $trigger, $nightly, $labels, $php_version, $branch['ref'], $all_variations);
     $branch['config']['default_run_test_jobs'] = version_compare($php_version, '8.6', '>=') ? '' : '-j2';
     $branch['config']['ubuntu_version'] = version_compare($php_version, '8.5', '>=') ? '24.04' : '22.04';
+    $branch['config']['integrated_opcache'] = version_compare($php_version, '8.5', '>=');
 }
 
 echo "All variations:";
diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml
index b444caf6b820..ce6053f929a0 100644
--- a/.github/workflows/test-suite.yml
+++ b/.github/workflows/test-suite.yml
@@ -472,6 +472,7 @@ jobs:
           mysql -uroot -proot -e "SET GLOBAL local_infile = true"
       - name: Enable Opcache
         run: |
+          ${{ !fromJson(inputs.branch).config.integrated_opcache && 'echo zend_extension=opcache.so >> /etc/php.d/opcache.ini' || '' }}
           echo memory_limit=-1 >> /etc/php.d/opcache.ini
           echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
           echo opcache.enable=1 >> /etc/php.d/opcache.ini
@@ -966,7 +967,7 @@ jobs:
           sudo mkdir -p /etc/php.d
           sudo chmod 777 /etc/php.d
           echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini
-          ${{ !fromJson(inputs.branch).jobs.BENCHMARKING.config.integrated_opcache && 'echo zend_extension=opcache.so >> /etc/php.d/opcache.ini' || '' }}
+          ${{ !fromJson(inputs.branch).config.integrated_opcache && 'echo zend_extension=opcache.so >> /etc/php.d/opcache.ini' || '' }}
           echo opcache.enable=1 >> /etc/php.d/opcache.ini
           echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
       - name: Setup
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.