> >(*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.

-- 
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