Lines Matching refs:aht

131 static int spl_array_skip_protected(spl_array_object *intern, HashTable *aht);
759 HashTable *aht = spl_array_get_hash_table(intern); in spl_array_iterator_append() local
761 if (!aht) { in spl_array_iterator_append()
952 static int spl_array_skip_protected(spl_array_object *intern, HashTable *aht) /* {{{ */ in spl_array_skip_protected() argument
959 uint32_t *pos_ptr = spl_array_get_pos_ptr(aht, intern); in spl_array_skip_protected()
962 if (zend_hash_get_current_key_ex(aht, &string_key, &num_key, pos_ptr) == HASH_KEY_IS_STRING) { in spl_array_skip_protected()
963 data = zend_hash_get_current_data_ex(aht, pos_ptr); in spl_array_skip_protected()
973 if (zend_hash_has_more_elements_ex(aht, pos_ptr) != SUCCESS) { in spl_array_skip_protected()
976 zend_hash_move_forward_ex(aht, pos_ptr); in spl_array_skip_protected()
982 static int spl_array_next_ex(spl_array_object *intern, HashTable *aht) /* {{{ */ in spl_array_next_ex() argument
984 uint32_t *pos_ptr = spl_array_get_pos_ptr(aht, intern); in spl_array_next_ex()
986 zend_hash_move_forward_ex(aht, pos_ptr); in spl_array_next_ex()
988 return spl_array_skip_protected(intern, aht); in spl_array_next_ex()
990 return zend_hash_has_more_elements_ex(aht, pos_ptr); in spl_array_next_ex()
996 HashTable *aht = spl_array_get_hash_table(intern); in spl_array_next() local
998 return spl_array_next_ex(intern, aht); in spl_array_next()
1012 HashTable *aht = spl_array_get_hash_table(object); in spl_array_it_valid() local
1017 if (spl_array_object_verify_pos_ex(object, aht, "ArrayIterator::valid(): ") == FAILURE) { in spl_array_it_valid()
1021 return zend_hash_has_more_elements_ex(aht, spl_array_get_pos_ptr(aht, object)); in spl_array_it_valid()
1029 HashTable *aht = spl_array_get_hash_table(object); in spl_array_it_get_current_data() local
1034 zval *data = zend_hash_get_current_data_ex(aht, spl_array_get_pos_ptr(aht, object)); in spl_array_it_get_current_data()
1046 HashTable *aht = spl_array_get_hash_table(object); in spl_array_it_get_current_key() local
1051 if (spl_array_object_verify_pos_ex(object, aht, "ArrayIterator::current(): ") == FAILURE) { in spl_array_it_get_current_key()
1054 zend_hash_get_current_key_zval_ex(aht, key, spl_array_get_pos_ptr(aht, object)); in spl_array_it_get_current_key()
1063 HashTable *aht = spl_array_get_hash_table(object); in spl_array_it_move_forward() local
1069 if (!aht) { in spl_array_it_move_forward()
1074 spl_array_next_ex(object, aht); in spl_array_it_move_forward()
1081 HashTable *aht = spl_array_get_hash_table(intern); in spl_array_rewind() local
1083 if (!aht) { in spl_array_rewind()
1089 spl_array_get_pos_ptr(aht, intern); in spl_array_rewind()
1091 zend_hash_internal_pointer_reset_ex(aht, spl_array_get_pos_ptr(aht, intern)); in spl_array_rewind()
1092 spl_array_skip_protected(intern, aht); in spl_array_rewind()
1337 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1343 if (!aht) { in SPL_METHOD()
1374 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1381 if (!aht) { in SPL_METHOD()
1394 …if (result == SUCCESS && zend_hash_has_more_elements_ex(aht, spl_array_get_pos_ptr(aht, intern)) =… in SPL_METHOD()
1403 HashTable *aht = spl_array_get_hash_table(intern); in spl_array_object_count_elements_helper() local
1406 if (!aht) { in spl_array_object_count_elements_helper()
1415 pos_ptr = spl_array_get_pos_ptr(aht, intern); in spl_array_object_count_elements_helper()
1419 while (*pos_ptr < aht->nNumUsed && spl_array_next(intern) == SUCCESS) { in spl_array_object_count_elements_helper()
1425 *count = zend_hash_num_elements(aht); in spl_array_object_count_elements_helper()
1468 HashTable *aht = spl_array_get_hash_table(intern); in spl_array_method() local
1474 ZVAL_ARR(Z_REFVAL(params[0]), aht); in spl_array_method()
1475 GC_ADDREF(aht); in spl_array_method()
1506 if (aht != new_ht) { in spl_array_method()
1509 GC_DELREF(aht); in spl_array_method()
1559 HashTable *aht = spl_array_get_hash_table(intern); in SPL_ARRAY_METHOD() local
1565 if (spl_array_object_verify_pos(intern, aht) == FAILURE) { in SPL_ARRAY_METHOD()
1569 if ((entry = zend_hash_get_current_data_ex(aht, spl_array_get_pos_ptr(aht, intern))) == NULL) { in SPL_ARRAY_METHOD()
1596 HashTable *aht = spl_array_get_hash_table(intern); in spl_array_iterator_key() local
1598 if (spl_array_object_verify_pos(intern, aht) == FAILURE) { in spl_array_iterator_key()
1602 zend_hash_get_current_key_zval_ex(aht, return_value, spl_array_get_pos_ptr(aht, intern)); in spl_array_iterator_key()
1612 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1618 if (spl_array_object_verify_pos(intern, aht) == FAILURE) { in SPL_METHOD()
1622 spl_array_next_ex(intern, aht); in SPL_METHOD()
1632 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1638 if (spl_array_object_verify_pos(intern, aht) == FAILURE) { in SPL_METHOD()
1641 RETURN_BOOL(zend_hash_has_more_elements_ex(aht, spl_array_get_pos_ptr(aht, intern)) == SUCCESS); in SPL_METHOD()
1652 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1658 if (spl_array_object_verify_pos(intern, aht) == FAILURE) { in SPL_METHOD()
1662 if ((entry = zend_hash_get_current_data_ex(aht, spl_array_get_pos_ptr(aht, intern))) == NULL) { in SPL_METHOD()
1681 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1687 if (spl_array_object_verify_pos(intern, aht) == FAILURE) { in SPL_METHOD()
1691 if ((entry = zend_hash_get_current_data_ex(aht, spl_array_get_pos_ptr(aht, intern))) == NULL) { in SPL_METHOD()
1722 HashTable *aht = spl_array_get_hash_table(intern); in SPL_METHOD() local
1731 if (!aht) { in SPL_METHOD()