Files
macports-ports/lang/php/files/patch-php85-atomic.diff
BjarneDM 94ff02c67b php8.{1..5}: updated to 8.1.34, 8.2.30, 8.3.30, 8.4.19, 8.5.4
This is a combination of commits.
	php74: implicit ints problem
	libxml2 is now @2.13.5_2
	php-openssl: fix for Dependency path specified multiple times in depends_build

Closes: #30533
Closes: #29866

Closes: https://trac.macports.org/ticket/72208
Closes: https://trac.macports.org/ticket/71999
2026-03-14 11:52:06 +11:00

18 lines
726 B
Diff

Fix:
error: address argument to atomic operation must be a pointer to non-const _Atomic type ('const _Atomic(bool) *' invalid)
https://github.com/php/php-src/issues/8881
https://github.com/php/php-src/pull/11931
--- a/Zend/zend_atomic.h.orig 2024-02-13 09:41:14.000000000 -0600
+++ b/Zend/zend_atomic.h 2024-03-03 17:16:17.000000000 -0600
@@ -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 __has_feature(c_atomic) && defined(__clang__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201710L
#define HAVE_C11_ATOMICS 1
#elif ZEND_GCC_PREREQ(4, 7)
#define HAVE_GNUC_ATOMICS 1