Re: [PHP-DEV] Storing zvals in hash tables in resources

2010-10-22 Thread Martin Jansen
On 23.10.10 01:05, Gustavo Lopes wrote: > On Fri, 22 Oct 2010 22:22:06 +0100, Martin Jansen > 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

Re: [PHP-DEV] Storing zvals in hash tables in resources

2010-10-22 Thread Gustavo Lopes
On Fri, 22 Oct 2010 22:22:06 +0100, Martin Jansen 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: [...] ALLOC_HASHTABLE(ctx->variables); zend_hash_init(ctx->variables, 32, NULL, NU

[PHP-DEV] Storing zvals in hash tables in resources

2010-10-22 Thread Martin Jansen
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: Please see my code below. In foo_get_value zend_hash_find() does *not* return FAILURE, so the key is there while the value is gone. Can someone spot m