Skip to content

Commit 15e9aa1

Browse files
committed
fixed macro
1 parent 8dfa428 commit 15e9aa1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Zend/zend_types.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,10 @@ static zend_always_inline uint32_t zval_delref_p(zval* pz) {
912912

913913
#define SEPARATE_STRING(zv) do { \
914914
zval *_zv = (zv); \
915-
if (Z_REFCOUNTED_P(_zv) && \
916-
Z_REFCOUNT_P(_zv) > 1) { \
917-
Z_DELREF_P(_zv); \
915+
if (Z_REFCOUNT_P(_zv) > 1) { \
916+
if (Z_REFCOUNTED_P(_zv)); \
917+
Z_DELREF_P(_zv); \
918+
} \
918919
zval_copy_ctor_func(_zv); \
919920
} \
920921
} while (0)

0 commit comments

Comments
 (0)