mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
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:
parent
2edd33b29d
commit
d0fc6dba0c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user