Re: Input paramters...

From: Date: Wed, 22 Nov 2000 21:34:38 +0000
Subject: Re: Input paramters...
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38948@lists.php.net to get a copy of this message
> >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? David Muse

« previous php.dev (#38948) next »