]> granicus.if.org Git - php/commitdiff
- Fix leak when global is used in the global scope.
authorAndi Gutmans <andi@php.net>
Thu, 26 Aug 1999 07:26:15 +0000 (07:26 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 26 Aug 1999 07:26:15 +0000 (07:26 +0000)
Zend/zend_execute_API.c

index 058c8c338ba4931e7bdd87b36283347b299f774e..6eacb7419f32e61a058b7f659751b6999d8cf2e7 100644 (file)
@@ -470,7 +470,8 @@ ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **var
        value_ptr = *value_ptr_ptr;
        if (variable_ptr == EG(error_zval_ptr) || value_ptr==EG(error_zval_ptr)) {
                variable_ptr_ptr = &EG(uninitialized_zval_ptr);
-       } else if (variable_ptr==&EG(uninitialized_zval) || variable_ptr!=value_ptr) {
+//     } else if (variable_ptr==&EG(uninitialized_zval) || variable_ptr!=value_ptr) {
+       } else if (variable_ptr != value_ptr) {
                variable_ptr->refcount--;
                if (variable_ptr->refcount==0) {
                        zendi_zval_dtor(*variable_ptr);