On 23.10.10 01:05, Gustavo Lopes wrote:
> On Fri, 22 Oct 2010 22:22:06 +0100, Martin Jansen <mar...@divbyzero.net>
> wrote:
> 
>> I'm trying to store zvals in a hash table which is part of a resource.
>> Unfortunately the zvals do not seem to "persist" between function calls:
> 
> You probably want to give a destructor to zend_hash_init, since you're
> storing zvals, that would be ZVAL_PTR_DTOR.
> 
> You're not incrementing the refcount of the value you're adding to the
> hash table. Call zval_add_ref.

Those two hints seem to do the trick. Thanks!

- Martin

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to