Lines Matching refs:aht

724 	HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC);  in spl_array_iterator_append()  local
726 if (!aht) { in spl_array_iterator_append()
738 spl_array_set_pos(intern, aht->pListTail); in spl_array_iterator_append()
916 static int spl_array_skip_protected(spl_array_object *intern, HashTable *aht TSRMLS_DC) /* {{{ */ in spl_array_skip_protected()
924 …if (zend_hash_get_current_key_ex(aht, &string_key, &string_length, &num_key, 0, &intern->pos) == H… in spl_array_skip_protected()
938 if (zend_hash_has_more_elements_ex(aht, &intern->pos) != SUCCESS) { in spl_array_skip_protected()
941 zend_hash_move_forward_ex(aht, &intern->pos); in spl_array_skip_protected()
948 static int spl_array_next_no_verify(spl_array_object *intern, HashTable *aht TSRMLS_DC) /* {{{ */ in spl_array_next_no_verify()
950 zend_hash_move_forward_ex(aht, &intern->pos); in spl_array_next_no_verify()
953 return spl_array_skip_protected(intern, aht TSRMLS_CC); in spl_array_next_no_verify()
955 return zend_hash_has_more_elements_ex(aht, &intern->pos); in spl_array_next_no_verify()
959 static int spl_array_next_ex(spl_array_object *intern, HashTable *aht TSRMLS_DC) /* {{{ */ in spl_array_next_ex()
961 …if ((intern->ar_flags & SPL_ARRAY_IS_REF) && spl_hash_verify_pos_ex(intern, aht TSRMLS_CC) == FAIL… in spl_array_next_ex()
966 return spl_array_next_no_verify(intern, aht TSRMLS_CC); in spl_array_next_ex()
971 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in spl_array_next() local
973 return spl_array_next_ex(intern, aht TSRMLS_CC); in spl_array_next()
998 HashTable *aht = spl_array_get_hash_table(object, 0 TSRMLS_CC); in spl_array_it_valid() local
1003 …if (spl_array_object_verify_pos_ex(object, aht, "ArrayIterator::valid(): " TSRMLS_CC) == FAILURE) { in spl_array_it_valid()
1007 return zend_hash_has_more_elements_ex(aht, &object->pos); in spl_array_it_valid()
1016 HashTable *aht = spl_array_get_hash_table(object, 0 TSRMLS_CC); in spl_array_it_get_current_data() local
1021 if (zend_hash_get_current_data_ex(aht, (void**)data, &object->pos) == FAILURE) { in spl_array_it_get_current_data()
1032 HashTable *aht = spl_array_get_hash_table(object, 0 TSRMLS_CC); in spl_array_it_get_current_key() local
1037 …if (spl_array_object_verify_pos_ex(object, aht, "ArrayIterator::current(): " TSRMLS_CC) == FAILURE… in spl_array_it_get_current_key()
1041 return zend_hash_get_current_key_ex(aht, str_key, str_key_len, int_key, 1, &object->pos); in spl_array_it_get_current_key()
1050 HashTable *aht = spl_array_get_hash_table(object, 0 TSRMLS_CC); in spl_array_it_move_forward() local
1056 if (!aht) { in spl_array_it_move_forward()
1061 …if ((object->ar_flags & SPL_ARRAY_IS_REF) && spl_hash_verify_pos_ex(object, aht TSRMLS_CC) == FAIL… in spl_array_it_move_forward()
1064 spl_array_next_no_verify(object, aht TSRMLS_CC); in spl_array_it_move_forward()
1070 static void spl_array_rewind_ex(spl_array_object *intern, HashTable *aht TSRMLS_DC) /* {{{ */ in spl_array_rewind_ex()
1073 zend_hash_internal_pointer_reset_ex(aht, &intern->pos); in spl_array_rewind_ex()
1075 spl_array_skip_protected(intern, aht TSRMLS_CC); in spl_array_rewind_ex()
1081 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in spl_array_rewind() local
1083 if (!aht) { in spl_array_rewind()
1088 spl_array_rewind_ex(intern, aht TSRMLS_CC); in spl_array_rewind()
1307 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1313 if (!aht) { in SPL_METHOD()
1347 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1354 if (!aht) { in SPL_METHOD()
1367 if (result == SUCCESS && zend_hash_has_more_elements_ex(aht, &intern->pos) == SUCCESS) { in SPL_METHOD()
1376 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in spl_array_object_count_elements_helper() local
1379 if (!aht) { in spl_array_object_count_elements_helper()
1397 *count = zend_hash_num_elements(aht); in spl_array_object_count_elements_helper()
1443 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in spl_array_method() local
1449 Z_ARRVAL_P(tmp) = aht; in spl_array_method()
1452 aht->nApplyCount++; in spl_array_method()
1454 aht->nApplyCount--; in spl_array_method()
1462 aht->nApplyCount++; in spl_array_method()
1464 aht->nApplyCount--; in spl_array_method()
1472 aht->nApplyCount++; in spl_array_method()
1474 aht->nApplyCount--; in spl_array_method()
1526 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_ARRAY_METHOD() local
1532 if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { in SPL_ARRAY_METHOD()
1536 if (zend_hash_get_current_data_ex(aht, (void **) &entry, &intern->pos) == FAILURE) { in SPL_ARRAY_METHOD()
1560 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in spl_array_iterator_key() local
1562 if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { in spl_array_iterator_key()
1566 …switch (zend_hash_get_current_key_ex(aht, &string_key, &string_length, &num_key, 1, &intern->pos))… in spl_array_iterator_key()
1585 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1591 if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { in SPL_METHOD()
1595 spl_array_next_no_verify(intern, aht TSRMLS_CC); in SPL_METHOD()
1605 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1611 if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { in SPL_METHOD()
1614 RETURN_BOOL(zend_hash_has_more_elements_ex(aht, &intern->pos) == SUCCESS); in SPL_METHOD()
1625 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1631 if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { in SPL_METHOD()
1635 if (zend_hash_get_current_data_ex(aht, (void **) &entry, &intern->pos) == FAILURE) { in SPL_METHOD()
1649 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1655 if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { in SPL_METHOD()
1659 if (zend_hash_get_current_data_ex(aht, (void **) &entry, &intern->pos) == FAILURE) { in SPL_METHOD()
1685 HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD() local
1695 if (!aht) { in SPL_METHOD()
1748 HashTable *aht; in SPL_METHOD() local
1760 aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); in SPL_METHOD()
1761 if (aht->nApplyCount > 0) { in SPL_METHOD()