Re: Input paramters...

From: Date: Thu, 23 Nov 2000 08:54:10 +0000
Subject: Re: Input paramters...
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-38969@lists.php.net to get a copy of this message
At 04:34 PM 11/22/2000 -0500, David Muse wrote:
After calling zend_get_parameters, are the zval's that it returns appear to be deallocated automatically when the function terminates. Is this proper behavior?
Yes. It's one of the main reasons that built-in functions are relatively leak safe.
The issue is as follows: ....
Yes. It's also very efficient, even though I realize it may not seem like that from your point of view (I'm way too tired to explain why it's efficient). Zeev That's cool, I just wanted to confirm that I was on the right track. I guess what's going on is; I'm adding another reference to that variable that the engine can't be aware of. If I increment that variables refcount then it shouldn't get deallocated when the function exits, but then how can I assure that it will ultimately get deallocated? Would I have to decrement it again somewhere? Is there a standard way to do what I'm trying to do?
What's wrong with estrndup'ing the variable? -Sterling

« previous php.dev (#38969) next »