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
742d5a01ed
This commit is contained in:
Tyson Andre 2018-06-09 15:54:22 -07:00 committed by Nikita Popov
parent 2edd33b29d
commit d0fc6dba0c

View File

@ -591,8 +591,8 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
#define Z_COPYABLE(zval) ((Z_TYPE(zval) == IS_ARRAY)
#define Z_COPYABLE_P(zval_p) Z_COPYABLE(*(zval_p))
/* deprecated: (IMMUTABLE is the same as IS_ARRAY && !REFCOUED) */
#define Z_IMMUTABLE(zval) ((Z_TYPE_INFO(zval) == IS_ARRAY)
/* deprecated: (IMMUTABLE is the same as IS_ARRAY && !REFCOUNTED) */
#define Z_IMMUTABLE(zval) (Z_TYPE_INFO(zval) == IS_ARRAY)
#define Z_IMMUTABLE_P(zval_p) Z_IMMUTABLE(*(zval_p))
#define Z_OPT_IMMUTABLE(zval) Z_IMMUTABLE(zval_p)
#define Z_OPT_IMMUTABLE_P(zval_p) Z_IMMUTABLE(*(zval_p))