diff options
author | Andi Gutmans <andi@php.net> | 1999-08-26 07:26:15 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 1999-08-26 07:26:15 +0000 |
commit | 2c88f2950cb67c204e417881cb84ee5e4d23d190 (patch) | |
tree | c8dcbc435647d93f3457869a7b1a904ea5e4a869 | |
parent | f297719cdb513f8f84006c061463df5ec9569a03 (diff) | |
download | php-git-2c88f2950cb67c204e417881cb84ee5e4d23d190.tar.gz |
- Fix leak when global is used in the global scope.
-rw-r--r-- | Zend/zend_execute_API.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 058c8c338b..6eacb7419f 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -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); |