Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c

From: Date: Mon, 15 Sep 2003 20:39:40 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1838@lists.php.net to get a copy of this message
Hello Zeev, Monday, September 15, 2003, 10:30:45 PM, you wrote: > Marcus, > That looks wrong. Calling zend_error() does (should) not require > duplicating strings. Please revert, I'll look into why there's corruption... Exactly my thoughts until i found out the what is really happening: The variable returned from the function call gets into the GC list and hence any further function call will free it. Since there is no way of keeping the variable i simply duplicated the value for that case. For integer index values we do that already - only an integer must not be copied - a sting pointer kept in a new value must however copy its value to be a duplicate. -- Best regards, Marcus mailto:helly@php.net

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