[php-src] master: Merge branch 'PHP-8.6'
| From: | Ilia Alshanetsky | Date: | Mon, 28 Sep 2026 20:45:22 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141640@lists.php.net to get a copy of this message | ||
Author: Ilia Alshanetsky (iliaal)
Date: 2026-09-28T16:42:45-04:00
Commit: https://github.com/php/php-src/commit/8612f4cd26b18a861b688501a6a630d306ec1641
Raw diff: https://github.com/php/php-src/commit/8612f4cd26b18a861b688501a6a630d306ec1641.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
Zend: clear the AVX bit in ECX when the OS has not enabled AVX state
Changed paths:
M Zend/zend_cpuinfo.c
Diff:
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);
}
}