Commit 371422b9b98 for php.net
commit 371422b9b98fd32b64051497aed3738814026d2c
Author: Kévin Dunglas <kevin@dunglas.fr>
Date: Thu Jan 29 10:38:10 2026 +0100
Zend/zend_call_stack.h: fix missing include on Windows (clang compat) (#20847)
Co-authored-by: Tim Düsterhus <tim@tideways-gmbh.com>
diff --git a/NEWS b/NEWS
index d0803cb6dae..59d35b5df94 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,9 @@ PHP NEWS
. Fixed bug GH-21055 (connection attribute status typo for GSS negotiation).
(lsaos)
+- Windows:
+ . Fixed compilation with clang (missing intrin.h include). (Kévin Dunglas)
+
12 Feb 2026, PHP 8.4.18
- Core:
diff --git a/Zend/zend_call_stack.h b/Zend/zend_call_stack.h
index c8bc756426b..566634deeb6 100644
--- a/Zend/zend_call_stack.h
+++ b/Zend/zend_call_stack.h
@@ -21,6 +21,9 @@
#include "zend.h"
#include "zend_portability.h"
+#ifdef _MSC_VER
+# include <intrin.h>
+#endif
#ifdef __APPLE__
# include <pthread.h>
#endif