Lines Matching refs:ht
106 static zend_never_inline void spl_array_create_ht_iter(HashTable *ht, spl_array_object* intern) /* … in spl_array_create_ht_iter() argument
108 intern->ht_iter = zend_hash_iterator_add(ht, zend_hash_get_current_pos(ht)); in spl_array_create_ht_iter()
109 zend_hash_internal_pointer_reset_ex(ht, &EG(ht_iterators)[intern->ht_iter].pos); in spl_array_create_ht_iter()
110 spl_array_skip_protected(intern, ht); in spl_array_create_ht_iter()
114 static zend_always_inline uint32_t *spl_array_get_pos_ptr(HashTable *ht, spl_array_object* intern) … in spl_array_get_pos_ptr() argument
117 spl_array_create_ht_iter(ht, intern); in spl_array_get_pos_ptr()
314 HashTable *ht = spl_array_get_hash_table(intern); in spl_array_get_dimension_ptr() local
316 if (!offset || Z_ISUNDEF_P(offset) || !ht) { in spl_array_get_dimension_ptr()
332 retval = zend_hash_find(ht, key.key); in spl_array_get_dimension_ptr()
369 retval = zend_hash_update(ht, key.key, &value); in spl_array_get_dimension_ptr()
375 if ((retval = zend_hash_index_find(ht, key.h)) == NULL) { in spl_array_get_dimension_ptr()
390 retval = zend_hash_index_update(ht, key.h, &value); in spl_array_get_dimension_ptr()
454 static uint32_t spl_array_set_refcount(bool is_child, HashTable *ht, uint32_t refcount) /* {{{ */ in spl_array_set_refcount() argument
458 old_refcount = GC_REFCOUNT(ht); in spl_array_set_refcount()
459 GC_SET_REFCOUNT(ht, refcount); in spl_array_set_refcount()
468 HashTable *ht; in spl_array_write_dimension_ex() local
491 ht = spl_array_get_hash_table(intern); in spl_array_write_dimension_ex()
492 refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_write_dimension_ex()
493 zend_hash_next_index_insert(ht, value); in spl_array_write_dimension_ex()
496 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_write_dimension_ex()
507 ht = spl_array_get_hash_table(intern); in spl_array_write_dimension_ex()
508 refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_write_dimension_ex()
510 zend_hash_update_ind(ht, key.key, value); in spl_array_write_dimension_ex()
513 zend_hash_index_update(ht, key.h, value); in spl_array_write_dimension_ex()
517 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_write_dimension_ex()
528 HashTable *ht; in spl_array_unset_dimension_ex() local
547 ht = spl_array_get_hash_table(intern); in spl_array_unset_dimension_ex()
548 uint32_t refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_unset_dimension_ex()
551 zval *data = zend_hash_find(ht, key.key); in spl_array_unset_dimension_ex()
559 HT_FLAGS(ht) |= HASH_FLAG_HAS_EMPTY_IND; in spl_array_unset_dimension_ex()
560 zend_hash_move_forward_ex(ht, spl_array_get_pos_ptr(ht, intern)); in spl_array_unset_dimension_ex()
562 spl_array_skip_protected(intern, ht); in spl_array_unset_dimension_ex()
567 zend_hash_del(ht, key.key); in spl_array_unset_dimension_ex()
572 zend_hash_index_del(ht, key.h); in spl_array_unset_dimension_ex()
576 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_unset_dimension_ex()
611 HashTable *ht = spl_array_get_hash_table(intern); in spl_array_has_dimension_ex() local
620 tmp = zend_hash_find(ht, key.key); in spl_array_has_dimension_ex()
623 tmp = zend_hash_index_find(ht, key.h); in spl_array_has_dimension_ex()
738 HashTable *ht; in spl_array_get_properties_for() local
762 ht = spl_array_get_hash_table(intern); in spl_array_get_properties_for()
764 ht = zend_array_dup(ht); in spl_array_get_properties_for()
766 GC_ADDREF(ht); in spl_array_get_properties_for()
768 return ht; in spl_array_get_properties_for()