cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h

From: Date: Mon, 18 Jun 2007 11:20:02 +0000
Subject: cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5855@lists.php.net to get a copy of this message
dmitry Mon Jun 18 11:20:02 2007 UTC Modified files: /ZendEngine2 zend_vm_def.h zend_vm_execute.h Log: MTH: Fixed foreach by-ref bug http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.169&r2=1.170&diff_format=u Index: ZendEngine2/zend_vm_def.h diff -u ZendEngine2/zend_vm_def.h:1.169 ZendEngine2/zend_vm_def.h:1.170 --- ZendEngine2/zend_vm_def.h:1.169 Wed Jun 13 14:50:33 2007 +++ ZendEngine2/zend_vm_def.h Mon Jun 18 11:20:01 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_vm_def.h,v 1.169 2007/06/13 14:50:33 dmitry Exp $ */ +/* $Id: zend_vm_def.h,v 1.170 2007/06/18 11:20:01 dmitry Exp $ */ /* If you change this file, please regenerate the zend_vm_execute.h and * zend_vm_opcodes.h files by running: @@ -3221,6 +3221,9 @@ } else { if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) { SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr); + if (opline->extended_value & ZEND_FE_FETCH_BYREF) { + (*array_ptr_ptr)->is_ref = 1; + } } array_ptr = *array_ptr_ptr; array_ptr->refcount++; http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.172&r2=1.173&diff_format=u Index: ZendEngine2/zend_vm_execute.h diff -u ZendEngine2/zend_vm_execute.h:1.172 ZendEngine2/zend_vm_execute.h:1.173 --- ZendEngine2/zend_vm_execute.h:1.172 Wed Jun 13 14:50:33 2007 +++ ZendEngine2/zend_vm_execute.h Mon Jun 18 11:20:01 2007 @@ -2150,6 +2150,9 @@ } else { if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) { SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr); + if (opline->extended_value & ZEND_FE_FETCH_BYREF) { + (*array_ptr_ptr)->is_ref = 1; + } } array_ptr = *array_ptr_ptr; array_ptr->refcount++; @@ -4829,6 +4832,9 @@ } else { if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) { SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr); + if (opline->extended_value & ZEND_FE_FETCH_BYREF) { + (*array_ptr_ptr)->is_ref = 1; + } } array_ptr = *array_ptr_ptr; array_ptr->refcount++; @@ -8096,6 +8102,9 @@ } else { if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) { SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr); + if (opline->extended_value & ZEND_FE_FETCH_BYREF) { + (*array_ptr_ptr)->is_ref = 1; + } } array_ptr = *array_ptr_ptr; array_ptr->refcount++; @@ -20742,6 +20751,9 @@ } else { if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) { SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr); + if (opline->extended_value & ZEND_FE_FETCH_BYREF) { + (*array_ptr_ptr)->is_ref = 1; + } } array_ptr = *array_ptr_ptr; array_ptr->refcount++;

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