cvs: ZendEngine2 / zend_execute.c

From: Date: Mon, 24 Jun 2002 17:58:22 +0000
Subject: cvs: ZendEngine2 / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-202@lists.php.net to get a copy of this message
andi Mon Jun 24 13:58:22 2002 EDT Modified files: /ZendEngine2 zend_execute.c Log: - 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. Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.347 ZendEngine2/zend_execute.c:1.348 --- ZendEngine2/zend_execute.c:1.347 Sun Jun 23 11:46:58 2002 +++ ZendEngine2/zend_execute.c Mon Jun 24 13:58:22 2002 @@ -1555,12 +1555,6 @@ { 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(); }

« previous php.zend-engine.cvs (#202) next »