Re: zend variable handling
| From: | Andi Gutmans | Date: | Mon, 14 Jan 2002 20:51:17 +0000 |
| Subject: | Re: zend variable handling | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77066@lists.php.net to get a copy of this message | ||
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/
>
>