diff options
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 2ef18a263d..c07ba96c9e 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -419,7 +419,7 @@ ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **var efree(variable_ptr); } - if (!value_ptr->EA) { + if (!PZVAL_IS_REF(value_ptr)) { /* break it away */ value_ptr->refcount--; if (value_ptr->refcount>0) { @@ -428,8 +428,8 @@ ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **var value_ptr = *value_ptr_ptr; zendi_zval_copy_ctor(*value_ptr); } - value_ptr->refcount=1; - value_ptr->EA=1; + value_ptr->refcount = 1; + value_ptr->EA = ZEND_EA_IS_REF; } *variable_ptr_ptr = value_ptr; |