From 0e270661a44ad2ff833b9ca33663a841e79886b6 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 20 Oct 2014 13:55:55 +0400 Subject: [PATCH] Use ADDREF instead of DUP, it must be enough. --- Zend/zend_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 3e68a38487..41cba30109 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -221,7 +221,7 @@ ZEND_API void zval_add_ref_unref(zval *p) { if (Z_REFCOUNTED_P(p)) { if (Z_ISREF_P(p)) { - ZVAL_DUP(p, Z_REFVAL_P(p)); + ZVAL_COPY(p, Z_REFVAL_P(p)); } else { Z_ADDREF_P(p); } -- 2.50.1