diff --git a/NEWS b/NEWS index d4ba415294d..92f9b2ee149 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ PHP NEWS type). (ilutov) . Fixed bug GH-15181 (Disabled output handler is flushed again). (cmb) . Passing E_USER_ERROR to trigger_error() is now deprecated. (Girgias) + . Fixed bug GH-15292 (Dynamic AVX detection is broken for MSVC). (nielsdos) - Date: . Constants SUNFUNCS_RET_TIMESTAMP, SUNFUNCS_RET_STRING, and SUNFUNCS_RET_DOUBLE diff --git a/Zend/zend_cpuinfo.c b/Zend/zend_cpuinfo.c index 809e379c860..6264031ceba 100644 --- a/Zend/zend_cpuinfo.c +++ b/Zend/zend_cpuinfo.c @@ -73,7 +73,7 @@ static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo } #endif -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) || defined(_M_X64) || defined(_M_IX86) /* Function based on compiler-rt implementation. */ static unsigned get_xcr0_eax(void) { # if defined(__GNUC__) || defined(__clang__)