Skip to content

Commit 437404b

Browse files
committed
Reuse SEPARATE_ARRAY() macro
1 parent ae2e4b5 commit 437404b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Zend/zend_types.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,12 +1333,7 @@ static zend_always_inline uint32_t zval_delref_p(zval* pz) {
13331333
#define SEPARATE_ZVAL_IF_NOT_REF(zv) do { \
13341334
zval *__zv = (zv); \
13351335
if (Z_TYPE_P(__zv) == IS_ARRAY) { \
1336-
if (Z_REFCOUNT_P(__zv) > 1) { \
1337-
if (Z_REFCOUNTED_P(__zv)) { \
1338-
Z_DELREF_P(__zv); \
1339-
} \
1340-
ZVAL_ARR(__zv, zend_array_dup(Z_ARR_P(__zv)));\
1341-
} \
1336+
SEPARATE_ARRAY(__zv); \
13421337
} \
13431338
} while (0)
13441339

0 commit comments

Comments
 (0)