[PHP-DEV] What's wrong with these hashtable iteration code?

2014-07-20 Thread Aaron Lewis
Hi, I'm trying to iterate through a hash table, But the zend_hash_get_current_key() doesn't seem to move forward: I'm getting duplicate output at the 'fprintf' part. for(zend_hash_internal_pointer_reset_ex(ht, &pos); zend_hash_has_more_elements_ex(ht, &pos) == SUCCESS;

Re: [PHP-DEV] What's wrong with these hashtable iteration code?

2014-07-20 Thread Tjerk Meesters
On Mon, Jul 21, 2014 at 11:12 AM, Aaron Lewis wrote: > Hi, > > I'm trying to iterate through a hash table, > > But the zend_hash_get_current_key() doesn't seem to move forward: > I'm getting duplicate output at the 'fprintf' part. > >for(zend_hash_internal_pointer_reset_ex(ht, &pos); >

[PHP-DEV] [RESOLVED] Re: [PHP-DEV] What's wrong with these hashtable iteration code?

2014-07-20 Thread Aaron Lewis
Thanks! It worked On Mon, Jul 21, 2014 at 11:20 AM, Tjerk Meesters wrote: > > > > On Mon, Jul 21, 2014 at 11:12 AM, Aaron Lewis > wrote: >> >> Hi, >> >> I'm trying to iterate through a hash table, >> >> But the zend_hash_get_current_key() doesn't seem to move forward: >> I'm getting duplicate ou