diff options
-rw-r--r-- | Zend/zend_execute.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 5c5218dde3..66acaec926 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -264,7 +264,9 @@ static inline void zend_assign_to_variable(znode *result, znode *op1, znode *op2 short refcount=variable_ptr->refcount; previous_lock_count = variable_ptr->EA.locks; - value->refcount++; + if (type!=IS_TMP_VAR) { + value->refcount++; + } zendi_zval_dtor(*variable_ptr); *variable_ptr = *value; variable_ptr->refcount = refcount; |