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

Re: [PHP-DEV] Intermittent problem: can't write to properties of $this

2010-10-22 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 5:04 PM, Tim Steiner wrote: > Greetings, > > I'm currently trying to troubleshoot an intermittent problem on one of our > servers. After some time of running just fine (usually a couple of hours), > scripts will start throwing the warning "Attempt to assign property of >