xref: /ext-ds/src/php/iterators/php_set_iterator.c (revision 49836c52)
1 #include "../../common.h"
2 
3 #include "../../ds/ds_set.h"
4 #include "../../ds/ds_htable.h"
5 #include "../objects/php_set.h"
6 
7 #include "php_set_iterator.h"
8 #include "php_htable_iterator.h"
9 
php_ds_set_get_iterator(zend_class_entry * ce,zval * obj,int by_ref)10 zend_object_iterator *php_ds_set_get_iterator(zend_class_entry *ce, zval *obj, int by_ref)
11 {
12     ds_htable_t *table = (Z_DS_SET_P(obj))->table;
13     return php_ds_htable_get_key_iterator_ex(ce, obj, by_ref, table);
14 }
15