[php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5
| From: | Ilia Alshanetsky | Date: | Mon, 28 Sep 2026 20:45:20 +0000 |
| Subject: | [php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141638@lists.php.net to get a copy of this message | ||
Author: Ilia Alshanetsky (iliaal)
Date: 2026-09-28T16:42:27-04:00
Commit: https://github.com/php/php-src/commit/bb35d428239a7f1b562edccc254dd2749517a578
Raw diff: https://github.com/php/php-src/commit/bb35d428239a7f1b562edccc254dd2749517a578.diff
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
Zend: clear the AVX bit in ECX when the OS has not enabled AVX state
Changed paths:
M NEWS
M Zend/zend_cpuinfo.c
Diff:
diff --git a/NEWS b/NEWS
index ec3e796765fc..ba65b8a7c263 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ PHP NEWS
comparison. (Arnaud)
. Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).
(ndossche)
+ . Fixed AVX being reported as supported when the OS has not enabled AVX
+ state. (Ilia Alshanetsky)
- CLI
. Fix GH-22567 (Windows ZTS CLI SAPI should refresh its TSRMLS cache during
diff --git a/Zend/zend_cpuinfo.c b/Zend/zend_cpuinfo.c
index 6264031ceba4..45857a7d6d65 100644
--- a/Zend/zend_cpuinfo.c
+++ b/Zend/zend_cpuinfo.c
@@ -135,7 +135,7 @@ void zend_cpu_startup(void)
}
if (!is_avx_supported()) {
- cpuinfo.edx &= ~ZEND_CPU_FEATURE_AVX;
+ cpuinfo.ecx &= ~ZEND_CPU_FEATURE_AVX;
cpuinfo.ebx &= ~(ZEND_CPU_FEATURE_AVX2 & ~ZEND_CPU_EBX_MASK);
}
}