mirror of
https://github.com/php/php-src.git
synced 2026-04-05 15:12:39 +02:00
- Damn. It wasn't a correct fix. This should do it.
When the zval ** are equal we don't want to assign_ref, in any other case I can think of we do want to assign_ref.
This commit is contained in:
@@ -471,7 +471,7 @@ ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **var
|
||||
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 != value_ptr) {
|
||||
} else if (variable_ptr_ptr != value_ptr_ptr) {
|
||||
variable_ptr->refcount--;
|
||||
if (variable_ptr->refcount==0) {
|
||||
zendi_zval_dtor(*variable_ptr);
|
||||
|
||||
Reference in New Issue
Block a user