Skip to content

Commit f1a77c0

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents d9602e4 + be09985 commit f1a77c0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.4.12
44

5+
- Core:
6+
. Fixed GH-19169 build issue with C++17 and ZEND_STATIC_ASSERT macro.
7+
(psumbera)
8+
59
- Hash:
610
. Fix crash on clone failure. (nielsdos)
711

Zend/zend_portability.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,9 @@ extern "C++" {
785785
/** @deprecated */
786786
#define ZEND_CGG_DIAGNOSTIC_IGNORED_END ZEND_DIAGNOSTIC_IGNORED_END
787787

788-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
788+
#if defined(__cplusplus)
789+
# define ZEND_STATIC_ASSERT(c, m) static_assert((c), m)
790+
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
789791
# define ZEND_STATIC_ASSERT(c, m) _Static_assert((c), m)
790792
#else
791793
# define ZEND_STATIC_ASSERT(c, m)

0 commit comments

Comments
 (0)