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 18:07:38 +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-6107@lists.php.net to get a copy of this message
The returned variable was already locked before so I remove lock and then set it again. Thanks. Dmitry. > -----Original Message----- > From: Marcus Boerger [mailto:helly@php.net] > Sent: Tuesday, October 23, 2007 6:52 PM > To: Dmitry Stogov > Cc: zend-engine-cvs@lists.php.net > 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 > > > 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 > > -- > Zend Engine CVS Mailing List (http://cvs.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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