Skip to content

Commit d0fc6db

Browse files
TysonAndrenikic
authored andcommitted
Fix the Z_IMMUTABLE macro - '(' was mismatched
The macro properly has two matching `(` and `)` symbols after this change. This typo was causing syntax errors when compiling extensions using the (deprecated) macro. This fixes a bug in the PHP 7.3 branch introduced by 742d5a0
1 parent 2edd33b commit d0fc6db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
591591
#define Z_COPYABLE(zval) ((Z_TYPE(zval) == IS_ARRAY)
592592
#define Z_COPYABLE_P(zval_p) Z_COPYABLE(*(zval_p))
593593

594-
/* deprecated: (IMMUTABLE is the same as IS_ARRAY && !REFCOUED) */
595-
#define Z_IMMUTABLE(zval) ((Z_TYPE_INFO(zval) == IS_ARRAY)
594+
/* deprecated: (IMMUTABLE is the same as IS_ARRAY && !REFCOUNTED) */
595+
#define Z_IMMUTABLE(zval) (Z_TYPE_INFO(zval) == IS_ARRAY)
596596
#define Z_IMMUTABLE_P(zval_p) Z_IMMUTABLE(*(zval_p))
597597
#define Z_OPT_IMMUTABLE(zval) Z_IMMUTABLE(zval_p)
598598
#define Z_OPT_IMMUTABLE_P(zval_p) Z_IMMUTABLE(*(zval_p))

0 commit comments

Comments
 (0)