You should use MAKE_STD_ZVAL().
In the past this macro allocated zval's in a faster way via a cache. It
has been disabled right now but it very probably will be redone a bit and
then re-enabled.

Andi

On Mon, 14 Jan 2002, brad lafountain wrote:

> Can someone explain the difference 
> from 
> 
> MAKE_STD_ZVAL(val);
> and
> 
> val = emalloc(sizeof(zval));
> INIT_ZVAL(val);
> 
> I'm sure that it has to do with deleting memory. 
> 
> Does MAKE_STD_ZVAL automatically delete your memory. If yes then when does it
> delete it?
> 
> And if i use the second way then I would have to delete my own memory?
> 
> - Brad
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
> 
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to