hash table question

php.internals

Ard Biesheuvel

23 years ago
For my upcoming improvement of interbase.c, which features asynchronous handling of events posted in the database, I need to maintain a per-link list of event names (string) and callbacks (zval). Would using zend_hash tables be the right way to do this ? Ard

Zeev Suraski

23 years ago
At 18:15 13/08/2003, Ard Biesheuvel wrote:
>For my upcoming improvement of interbase.c, which features asynchronous >handling of events posted in the database, I need to maintain a per-link >list >of event names (string) and callbacks (zval). > >Would using zend_hash tables be the right way to do this ?
If you just need a list, you can also use zend_llist. If you need more than just a simple linked list, go for a hash. Zeev