Pass TSRMLS_C into zhash_foreach callback