summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-09 18:19:48 +0000
committerZeev Suraski <zeev@php.net>1999-07-09 18:19:48 +0000
commit6ec1acbe32e4a1a9a94a0e623816d25809ce9a2b (patch)
tree1fdb5b9a0545a52eca22ee4f65b0c81c5307c3f2 /Zend/zend_execute_API.c
parent5f62c347c73300d5903a110c863be45b3b96c9f8 (diff)
downloadphp-git-6ec1acbe32e4a1a9a94a0e623816d25809ce9a2b.tar.gz
Phase 3:
Use a single bit to mark IS_REF variables
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c6
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;