Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_compile.c zend_language_parser.y zend_vm_def.h zend_vm_execute.h /tests bug35163.phpt php-src
NEWS

From: Date: Tue, 23 Oct 2007 14:52:03 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_compile.c zend_language_parser.y zend_vm_def.h zend_vm_execute.h /tests bug35163.phpt php-src
NEWS
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6106@lists.php.net to get a copy of this message
Hello Dmitry, Tuesday, October 23, 2007, 11:55:14 AM, you wrote: > [...] > Index: ZendEngine2/zend_vm_def.h > diff -u ZendEngine2/zend_vm_def.h:1.59.2.29.2.48.2.13 > ZendEngine2/zend_vm_def.h:1.59.2.29.2.48.2.14 > --- ZendEngine2/zend_vm_def.h:1.59.2.29.2.48.2.13 Sun Oct 7 05:22:03 2007 > +++ ZendEngine2/zend_vm_def.h Tue Oct 23 09:55:10 2007 > @@ -18,7 +18,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: zend_vm_def.h,v 1.59.2.29.2.48.2.13 2007/10/07 05:22:03 davidw Exp $ */ > +/* $Id: zend_vm_def.h,v 1.59.2.29.2.48.2.14 2007/10/23 09:55:10 dmitry Exp $ */ > > /* If you change this file, please regenerate the zend_vm_execute.h and > * zend_vm_opcodes.h files by running: > @@ -1066,6 +1066,14 @@ > AI_USE_PTR(EX_T(opline->result.u.var).var); > } > FREE_OP1_VAR_PTR(); > + > + /* We are going to assign the result by reference */ > + if (opline->extended_value) { > + Z_DELREF_PP(EX_T(opline->result.u.var).var.ptr_ptr); > + > SEPARATE_ZVAL_TO_MAKE_IS_REF(EX_T(opline->result.u.var).var.ptr_ptr); > + Z_ADDREF_PP(EX_T(opline->result.u.var).var.ptr_ptr); > + } > + > ZEND_VM_NEXT_OPCODE(); > } > [...] Can you explain why we decrease first and increase after separation? Best regards, Marcus

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