Index: php8.2-8.2.7/Zend/zend_atomic.h
===================================================================
--- php8.2-8.2.7.orig/Zend/zend_atomic.h
+++ php8.2-8.2.7/Zend/zend_atomic.h
@@ -23,7 +23,7 @@
 	((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x)))
 
 /* Builtins are used to avoid library linkage */
-#if __has_feature(c_atomic) && defined(__clang__)
+#if 0 && __has_feature(c_atomic) && defined(__clang__)
 #define	HAVE_C11_ATOMICS 1
 #elif ZEND_GCC_PREREQ(4, 7)
 #define	HAVE_GNUC_ATOMICS 1
Index: php8.2-8.2.7/Zend/zend_atomic.c
===================================================================
--- php8.2-8.2.7.orig/Zend/zend_atomic.c
+++ php8.2-8.2.7/Zend/zend_atomic.c
@@ -12,6 +12,7 @@
    +----------------------------------------------------------------------+
  */
 
+#define zend_always_inline
 #include "zend_atomic.h"
 
 /* This file contains the non-inline copy of atomic functions. This is useful
