RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_reference?
| From: | Marc Boeren | Date: | Thu, 19 Jul 2001 12:36:01 +0000 |
| Subject: | RE: [PHP-DEV] Zend engine: unresolved external _zend_assign_to_va riable_reference? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60285@lists.php.net to get a copy of this message | ||
> >(*actual_ptr)->refcount++;
> >(*actual_ptr)->is_ref =1;
> (a) You only have to set is_ref once.
I only set it once... or is increasing the refcount enough?
> (b) If you don't increase the refcount, the behavior is
> undefined, and is likely to end up crashing PHP.
> Not increasing refcount may actually give
> you the same behavior as setting is_ref to 1, but it would
> crash, sooner or later.
What I meant was, without setting _either_ refcount or is_ref (so only the
hash_update call), it still works with no mem loss.
So, do I need just the refcount++, or the is_ref=1 as well?
Cheerio, Marc.