Re: [PHP4BETA] zval->refcount
| From: | Zeev Suraski | Date: | Fri, 04 Jun 1999 10:56:22 +0000 |
| Subject: | Re: [PHP4BETA] zval->refcount | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1277@lists.php.net to get a copy of this message | ||
array_init() should probably do that. It definitely should actually.
Zeev
On Fri, 4 Jun 1999, Thies C. Arntzen wrote:
> i'm confused..
>
> some code:
> ----------
> zval *somezval;
>
> somezval = emalloc(sizeof(zval));
>
> array_init(somezval);
>
> do i need to do:?
>
> somezval->refcount = 1;
> somezval->is_ref = 0;
>
> -----------
>
> as array_init does not set those fields (refcount, is_ref) i think we
> should mybe come up with something like a new_zval() function that
> allocated a sizeof(pval) thingie and sets the refcount and is_ref.
>
> suggestions?
>
> tc
>
>
>
> Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
> Digital Collections Phone +49 40 235350 Fax +49 40 23535180
> Hammerbrookstr. 93 20097 Hamburg / Germany
>
>
> --
> PHP 4 Beta
>
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com>
For a PGP public key, finger bourbon@netvision.net.il