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