From 429b9e5d2427319efedf9eabcd7cd88b7d01c81a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 Feb 2008 12:11:57 +0000 Subject: [PATCH] Removed redundant refcount manipulations --- Zend/zend_execute.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index c2bf057e41..3b09f6cb0e 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -753,16 +753,12 @@ static inline zval* zend_assign_to_variable(zval **variable_ptr_ptr, zval *value if (variable_ptr!=value) { zend_uint refcount = Z_REFCOUNT_P(variable_ptr); - if (!is_tmp_var) { - Z_ADDREF_P(value); - } garbage = *variable_ptr; *variable_ptr = *value; Z_SET_REFCOUNT_P(variable_ptr, refcount); Z_SET_ISREF_P(variable_ptr); if (!is_tmp_var) { zendi_zval_copy_ctor(*variable_ptr); - Z_DELREF_P(value); } zendi_zval_dtor(garbage); return variable_ptr; -- 2.50.1