summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-06-24 17:58:22 +0000
committerAndi Gutmans <andi@php.net>2002-06-24 17:58:22 +0000
commit68663bf96ba679f42d8996d8f3298144492193ea (patch)
tree6e69f69b523699577c8658725ebfdcddee6871f7 /Zend/zend_execute.c
parent8fd5e70e2deaf2e0f34f7f698fb93fd7899685cb (diff)
downloadphp-git-68663bf96ba679f42d8996d8f3298144492193ea.tar.gz
- Revert patch which checks at run-time if you're allowed to assign
- certain values by reference. - We still need to find a solution for cases when this shouldn't be allowed - as it might cause leaks.
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r--Zend/zend_execute.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 1f65c9ce0c..858766817b 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -1555,12 +1555,6 @@ binary_assign_op_addr_obj:
{
zval **value_ptr_ptr = get_zval_ptr_ptr(&EX(opline)->op2, EX(Ts), BP_VAR_W);
- if (value_ptr_ptr = EX(Ts)[EX(opline)->op2.u.var].var.ptr_ptr) {
- if (!(*value_ptr_ptr != &EG(uninitialized_zval) && (PZVAL_IS_REF(*value_ptr_ptr) || (*value_ptr_ptr)->refcount == 1)))
- {
- zend_error(E_ERROR, "Can't assign by reference non-referencable value!");
- }
- }
zend_assign_to_variable_reference(&EX(opline)->result, get_zval_ptr_ptr(&EX(opline)->op1, EX(Ts), BP_VAR_W), value_ptr_ptr, EX(Ts) TSRMLS_CC);
NEXT_OPCODE();
}