[php-src] master: Merge branch 'PHP-8.5' into PHP-8.6
| From: | Ilia Alshanetsky | Date: | Mon, 28 Sep 2026 20:45:20 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.5' into PHP-8.6 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141639@lists.php.net to get a copy of this message | ||
Author: Ilia Alshanetsky (iliaal)
Date: 2026-09-28T16:42:43-04:00
Commit: https://github.com/php/php-src/commit/1256be750e39e0caee5129c7029784f12a751ead
Raw diff: https://github.com/php/php-src/commit/1256be750e39e0caee5129c7029784f12a751ead.diff
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
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 94952bf18a94..2b21075a0f06 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ PHP NEWS
strict_types=1). (timwolla)
. Fixed OSS-Fuzz #565486253 (coerced arg with '...' on non-variadic
function). (ndossche)
+ . Fixed AVX being reported as supported when the OS has not enabled AVX
+ state. (Ilia Alshanetsky)
- FFI:
. Fixed crashes with FFI callbacks created from __call() trampolines
diff --git a/Zend/zend_cpuinfo.c b/Zend/zend_cpuinfo.c
index 6fc42ca39e6c..16c6c173766c 100644
--- a/Zend/zend_cpuinfo.c
+++ b/Zend/zend_cpuinfo.c
@@ -134,7 +134,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);
}
}