Lines Matching refs:iter
36 static zend_result zho_it_valid(zend_object_iterator *iter);
37 static void zho_it_move_forward(zend_object_iterator *iter);
135 static void zho_it_get_current_key(zend_object_iterator *iter, zval *key);
137 static void zho_declared_it_fetch_current(zend_object_iterator *iter) in zho_declared_it_fetch_current() argument
139 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_declared_it_fetch_current()
140 zend_object *zobj = Z_OBJ_P(&iter->data); in zho_declared_it_fetch_current()
201 static void zho_dynamic_it_fetch_current(zend_object_iterator *iter) in zho_dynamic_it_fetch_current() argument
203 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_dynamic_it_fetch_current()
204 zend_array *properties = Z_OBJ(iter->data)->properties; in zho_dynamic_it_fetch_current()
235 static void zho_it_fetch_current(zend_object_iterator *iter) in zho_it_fetch_current() argument
237 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_fetch_current()
244 zho_declared_it_fetch_current(iter); in zho_it_fetch_current()
246 zho_dynamic_it_fetch_current(iter); in zho_it_fetch_current()
253 zho_it_move_forward(iter); in zho_it_fetch_current()
257 static void zho_it_dtor(zend_object_iterator *iter) in zho_it_dtor() argument
259 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_dtor()
260 zval_ptr_dtor(&iter->data); in zho_it_dtor()
267 static zend_result zho_it_valid(zend_object_iterator *iter) in zho_it_valid() argument
269 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_valid()
270 zho_it_fetch_current(iter); in zho_it_valid()
274 static zval *zho_it_get_current_data(zend_object_iterator *iter) in zho_it_get_current_data() argument
276 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_get_current_data()
277 zho_it_fetch_current(iter); in zho_it_get_current_data()
281 static void zho_it_get_current_key(zend_object_iterator *iter, zval *key) in zho_it_get_current_key() argument
283 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_get_current_key()
284 zho_it_fetch_current(iter); in zho_it_get_current_key()
288 static void zho_it_move_forward(zend_object_iterator *iter) in zho_it_move_forward() argument
290 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_move_forward()
304 zend_array *properties = Z_OBJ(iter->data)->properties; in zho_it_move_forward()
311 static void zho_it_rewind(zend_object_iterator *iter) in zho_it_rewind() argument
313 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_rewind()
324 EG(ht_iterators)[hooked_iter->dynamic_prop_it].pos = zho_num_backed_props(Z_OBJ(iter->data)); in zho_it_rewind()
327 static HashTable *zho_it_get_gc(zend_object_iterator *iter, zval **table, int *n) in zho_it_get_gc() argument
329 zend_hooked_object_iterator *hooked_iter = (zend_hooked_object_iterator*)iter; in zho_it_get_gc()
331 zend_get_gc_buffer_add_zval(gc_buffer, &iter->data); in zho_it_get_gc()