]> granicus.if.org Git - php/commitdiff
- Fixed a purify warning
authorAndi Gutmans <andi@php.net>
Mon, 12 Jul 1999 18:07:01 +0000 (18:07 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 12 Jul 1999 18:07:01 +0000 (18:07 +0000)
Zend/zend_execute.c

index 5c5218dde35c59877cab19fa37e44f078bd147ad..66acaec926a17c912877f5b874635370f173092b 100644 (file)
@@ -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;