Lines Matching refs:ht

111 static zend_never_inline void spl_array_create_ht_iter(HashTable *ht, spl_array_object* intern) /* …  in spl_array_create_ht_iter()  argument
113 intern->ht_iter = zend_hash_iterator_add(ht, zend_hash_get_current_pos(ht)); in spl_array_create_ht_iter()
114 zend_hash_internal_pointer_reset_ex(ht, &EG(ht_iterators)[intern->ht_iter].pos); in spl_array_create_ht_iter()
115 spl_array_skip_protected(intern, ht); in spl_array_create_ht_iter()
119 static zend_always_inline uint32_t *spl_array_get_pos_ptr(HashTable *ht, spl_array_object* intern) … in spl_array_get_pos_ptr() argument
122 spl_array_create_ht_iter(ht, intern); in spl_array_get_pos_ptr()
312 HashTable *ht = spl_array_get_hash_table(intern); in spl_array_get_dimension_ptr() local
314 if (!offset || Z_ISUNDEF_P(offset) || !ht) { in spl_array_get_dimension_ptr()
330 retval = zend_hash_find(ht, key.key); in spl_array_get_dimension_ptr()
367 retval = zend_hash_update(ht, key.key, &value); in spl_array_get_dimension_ptr()
373 if ((retval = zend_hash_index_find(ht, key.h)) == NULL) { in spl_array_get_dimension_ptr()
388 retval = zend_hash_index_update(ht, key.h, &value); in spl_array_get_dimension_ptr()
452 static uint32_t spl_array_set_refcount(bool is_child, HashTable *ht, uint32_t refcount) /* {{{ */ in spl_array_set_refcount() argument
456 old_refcount = GC_REFCOUNT(ht); in spl_array_set_refcount()
457 GC_SET_REFCOUNT(ht, refcount); in spl_array_set_refcount()
466 HashTable *ht; in spl_array_write_dimension_ex() local
489 ht = spl_array_get_hash_table(intern); in spl_array_write_dimension_ex()
490 refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_write_dimension_ex()
491 zend_hash_next_index_insert(ht, value); in spl_array_write_dimension_ex()
494 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_write_dimension_ex()
505 ht = spl_array_get_hash_table(intern); in spl_array_write_dimension_ex()
506 refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_write_dimension_ex()
508 zend_hash_update_ind(ht, key.key, value); in spl_array_write_dimension_ex()
511 zend_hash_index_update(ht, key.h, value); in spl_array_write_dimension_ex()
515 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_write_dimension_ex()
526 HashTable *ht; in spl_array_unset_dimension_ex() local
545 ht = spl_array_get_hash_table(intern); in spl_array_unset_dimension_ex()
546 uint32_t refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_unset_dimension_ex()
549 zval *data = zend_hash_find(ht, key.key); in spl_array_unset_dimension_ex()
556 HT_FLAGS(ht) |= HASH_FLAG_HAS_EMPTY_IND; in spl_array_unset_dimension_ex()
557 zend_hash_move_forward_ex(ht, spl_array_get_pos_ptr(ht, intern)); in spl_array_unset_dimension_ex()
559 spl_array_skip_protected(intern, ht); in spl_array_unset_dimension_ex()
563 zend_hash_del(ht, key.key); in spl_array_unset_dimension_ex()
568 zend_hash_index_del(ht, key.h); in spl_array_unset_dimension_ex()
572 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_unset_dimension_ex()
607 HashTable *ht = spl_array_get_hash_table(intern); in spl_array_has_dimension_ex() local
616 tmp = zend_hash_find(ht, key.key); in spl_array_has_dimension_ex()
619 tmp = zend_hash_index_find(ht, key.h); in spl_array_has_dimension_ex()
734 HashTable *ht; in spl_array_get_properties_for() local
758 ht = spl_array_get_hash_table(intern); in spl_array_get_properties_for()
760 ht = zend_array_dup(ht); in spl_array_get_properties_for()
762 GC_ADDREF(ht); in spl_array_get_properties_for()
764 return ht; in spl_array_get_properties_for()