Skip to content

Commit 14db988

Browse files
committed
Fix build with ZEND_RC_DEBUG
1 parent 956ac5c commit 14db988

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
510510
#define Z_GC_TYPE_INFO(zval) GC_TYPE_INFO(Z_COUNTED(zval))
511511
#define Z_GC_TYPE_INFO_P(zval_p) Z_GC_TYPE_INFO(*(zval_p))
512512

513-
/* zval.value->gc.u.v.flags (common flags) */
513+
/* zval_gc_flags(zval.value->gc.u.type_info) (common flags) */
514514
#define GC_COLLECTABLE (1<<4)
515515
#define GC_PROTECTED (1<<5) /* used for recursion detection */
516516
#define GC_IMMUTABLE (1<<6) /* can't be canged in place */
@@ -953,8 +953,8 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
953953
extern ZEND_API zend_bool zend_rc_debug;
954954
# define ZEND_RC_MOD_CHECK(p) do { \
955955
if (zend_rc_debug) { \
956-
ZEND_ASSERT(!((p)->u.v.flags & GC_IMMUTABLE)); \
957-
ZEND_ASSERT(((p)->u.v.flags & (GC_PERSISTENT|GC_PERSISTENT_LOCAL)) != GC_PERSISTENT); \
956+
ZEND_ASSERT(!(zval_gc_flags((p)->u.type_info) & GC_IMMUTABLE)); \
957+
ZEND_ASSERT((zval_gc_flags((p)->u.type_info) & (GC_PERSISTENT|GC_PERSISTENT_LOCAL)) != GC_PERSISTENT); \
958958
} \
959959
} while (0)
960960
# define GC_MAKE_PERSISTENT_LOCAL(p) do { \

0 commit comments

Comments
 (0)