/php-src/Zend/ |
H A D | zend_hash.c | 44 #define HT_ASSERT_RC1(ht) HT_ASSERT(ht, GC_REFCOUNT(ht) == 1) argument 548 iter->ht = ht; in zend_hash_iterator_add() 567 iter->ht = ht; in zend_hash_iterator_add() 585 if (copy_iter->ht == ht) { in zend_hash_iterator_find_copy_pos() 621 iter->ht = ht; in zend_hash_iterator_pos() 643 iter->ht = ht; in zend_hash_iterator_pos_ex() 680 if (iter->ht == ht) { in _zend_hash_iterators_remove() 701 if (iter->ht == ht) { in zend_hash_iterators_lower_pos() 730 if (iter->ht == ht) { in zend_hash_iterators_advance() 1345 if (iter->ht == ht) { in zend_hash_rehash() [all …]
|
H A D | zend_hash.h | 51 #define HT_FLAGS(ht) (ht)->u.flags argument 64 ((ht)->nNumUsed == (ht)->nNumOfElements) 75 #define HT_ITERATORS_COUNT(ht) (ht)->u.v.nIteratorsCount argument 76 #define HT_ITERATORS_OVERFLOW(ht) (HT_ITERATORS_COUNT(ht) == 0xff) argument 77 #define HT_HAS_ITERATORS(ht) (HT_ITERATORS_COUNT(ht) != 0) argument 82 HT_SET_ITERATORS_COUNT(ht, HT_ITERATORS_COUNT(ht) + 1) 84 HT_SET_ITERATORS_COUNT(ht, HT_ITERATORS_COUNT(ht) - 1) 268 return zend_hash_move_forward_ex(ht, &ht->nInternalPointer); in zend_hash_move_forward() 271 return zend_hash_move_backwards_ex(ht, &ht->nInternalPointer); in zend_hash_move_backwards() 286 zend_hash_internal_pointer_reset_ex(ht, &ht->nInternalPointer); in zend_hash_internal_pointer_reset() [all …]
|
H A D | zend_weakrefs.c | 30 HashTable ht; member 85 HashTable *ht = ptr; in zend_weakref_unref() local 90 zend_hash_destroy(ht); in zend_weakref_unref() 91 FREE_HASHTABLE(ht); in zend_weakref_unref() 145 HashTable *ht = ptr; in zend_weakref_unregister() local 155 FREE_HASHTABLE(ht); in zend_weakref_unregister() 297 return ht; in zend_weakref_get_debug_info() 469 HashTable *ht; in zend_weakmap_get_properties_for() local 470 ALLOC_HASHTABLE(ht); in zend_weakmap_get_properties_for() 488 return ht; in zend_weakmap_get_properties_for() [all …]
|
H A D | zend_weakrefs.h | 33 ZEND_API zval *zend_weakrefs_hash_add(HashTable *ht, zend_object *key, zval *pData); 34 ZEND_API zend_result zend_weakrefs_hash_del(HashTable *ht, zend_object *key); 35 static zend_always_inline void *zend_weakrefs_hash_add_ptr(HashTable *ht, zend_object *key, void *p… in zend_weakrefs_hash_add_ptr() argument 38 if ((zv = zend_weakrefs_hash_add(ht, key, &tmp))) { in zend_weakrefs_hash_add_ptr() 44 ZEND_API void zend_weakrefs_hash_clean(HashTable *ht); 45 static zend_always_inline void zend_weakrefs_hash_destroy(HashTable *ht) { in zend_weakrefs_hash_destroy() argument 46 zend_weakrefs_hash_clean(ht); in zend_weakrefs_hash_destroy() 47 ZEND_ASSERT(zend_hash_num_elements(ht) == 0); in zend_weakrefs_hash_destroy() 48 zend_hash_destroy(ht); in zend_weakrefs_hash_destroy()
|
H A D | zend_gc.c | 798 HashTable *ht; in gc_scan_black() local 892 GC_ADDREF(ht); in gc_scan_black() 997 HashTable *ht; in gc_mark_grey() local 1068 GC_DELREF(ht); in gc_mark_grey() 1120 p = ht->arData; in gc_mark_grey() 1228 HashTable *ht; in gc_scan() local 1332 p = ht->arData; in gc_scan() 1440 HashTable *ht; in gc_collect_white() local 1573 p = ht->arData; in gc_collect_white() 1667 HashTable *ht; in gc_remove_nested_data_from_buffer() local [all …]
|
H A D | zend_types.h | 474 #define HT_SIZE(ht) \ argument 475 HT_SIZE_EX((ht)->nTableSize, (ht)->nTableMask) 477 (HT_HASH_SIZE((ht)->nTableMask) + ((size_t)(ht)->nNumUsed * sizeof(Bucket))) 483 HT_PACKED_SIZE_EX((ht)->nTableSize, (ht)->nTableMask) 485 (HT_HASH_SIZE((ht)->nTableMask) + ((size_t)(ht)->nNumUsed * sizeof(zval))) 488 char *p = (char*)&HT_HASH(ht, (ht)->nTableMask); \ 502 char *p = (char*)&HT_HASH(ht, (ht)->nTableMask); \ 518 char *p = (char*)&HT_HASH(ht, (ht)->nTableMask); \ 533 memset(&HT_HASH(ht, (ht)->nTableMask), HT_INVALID_IDX, HT_HASH_SIZE((ht)->nTableMask)) 546 ((char*)((ht)->arData) - HT_HASH_SIZE((ht)->nTableMask)) [all …]
|
H A D | zend_generators.c | 181 HashTable *ht = node->child.ht; in zend_generator_remove_child() local 189 zend_hash_destroy(ht); in zend_generator_remove_child() 190 efree(ht); in zend_generator_remove_child() 378 efree(generator->node.child.ht); in zend_generator_free_storage() 410 return ht; in zend_generator_frame_gc() 449 return ht; in zend_generator_get_gc() 535 zend_hash_index_add_new_ptr(ht, in zend_generator_add_child() 537 node->child.ht = ht; in zend_generator_add_child() 654 if (HT_IS_PACKED(ht)) { in zend_generator_get_next_delegated_value() 661 value = &ht->arPacked[pos]; in zend_generator_get_next_delegated_value() [all …]
|
H A D | zend_verify_type_inference.h | 83 HashTable *ht = Z_ARRVAL_P(value); in zend_verify_type_inference() local 87 if (HT_IS_INITIALIZED(ht)) { in zend_verify_type_inference() 88 if (HT_IS_PACKED(ht) && !MAY_BE_PACKED(type_mask)) { in zend_verify_type_inference() 91 if (!HT_IS_PACKED(ht) && !MAY_BE_HASH(type_mask)) { in zend_verify_type_inference() 99 ZEND_HASH_FOREACH_STR_KEY_VAL(ht, str, val) { in zend_verify_type_inference()
|
H A D | zend_list.h | 50 void zend_close_rsrc_list(HashTable *ht); 51 void zend_destroy_rsrc_list(HashTable *ht);
|
H A D | zend_list.c | 215 void zend_close_rsrc_list(HashTable *ht) in zend_close_rsrc_list() argument 218 uint32_t i = ht->nNumUsed; in zend_close_rsrc_list() 221 zval *p = ZEND_HASH_ELEMENT(ht, i); in zend_close_rsrc_list() 232 void zend_destroy_rsrc_list(HashTable *ht) in zend_destroy_rsrc_list() argument 234 zend_hash_graceful_reverse_destroy(ht); in zend_destroy_rsrc_list()
|
/php-src/win32/ |
H A D | registry.c | 80 HashTable *ht = NULL; in LoadDirectory() local 101 if (!ht) { in LoadDirectory() 103 if (!ht) { in LoadDirectory() 113 if (ht) { in LoadDirectory() 120 zend_hash_add(ht, index, tmpdata); in LoadDirectory() 131 if (ht == NULL) { in LoadDirectory() 132 ht = parent_ht; in LoadDirectory() 173 HashTable *ht = (HashTable *)Z_PTR_P(zv); in delete_internal_hashtable() local 174 zend_hash_destroy(ht); in delete_internal_hashtable() 175 free(ht); in delete_internal_hashtable() [all …]
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 449 GC_ADDREF(ht); in zend_jit_undefined_op_helper_write() 489 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper() 521 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper() 549 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper() 631 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper() 691 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper() 769 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_isset_helper() 2665 if (iter->ht == ht) { in _zend_hash_iterators_remove() 2686 HashTable *ht; in zend_jit_zval_array_dup() local 2690 ht = zend_array_dup(ht); in zend_jit_zval_array_dup() [all …]
|
/php-src/ext/dom/ |
H A D | namednodemap.c | 42 return objmap->ht ? xmlHashSize(objmap->ht) : 0; in php_dom_get_namednodemap_length() 80 if (objmap->ht) { in php_dom_named_node_map_get_named_item() 82 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, BAD_CAST ZSTR_VAL(named)); in php_dom_named_node_map_get_named_item() 84 xmlNotationPtr notep = xmlHashLookup(objmap->ht, BAD_CAST ZSTR_VAL(named)); in php_dom_named_node_map_get_named_item() 141 if (objmap->ht) { in php_dom_named_node_map_get_item() 218 if (objmap->ht) { in PHP_METHOD() 220 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, BAD_CAST named); in PHP_METHOD() 222 notep = (xmlNotation *)xmlHashLookup(objmap->ht, BAD_CAST named); in PHP_METHOD()
|
H A D | xml_serializer.c | 58 HashTable *ht; member 63 HashTable ht; member 114 ALLOC_HASHTABLE(map->ht); in dom_xml_ns_prefix_map_ctor() 135 zend_hash_destroy(map->ht); in dom_xml_ns_prefix_map_destroy() 136 efree(map->ht); in dom_xml_ns_prefix_map_destroy() 137 map->ht = NULL; in dom_xml_ns_prefix_map_destroy() 149 dst->ht = src->ht; in dom_xml_ns_prefix_map_copy() 150 GC_ADDREF(dst->ht); in dom_xml_ns_prefix_map_copy() 160 zend_hash_destroy(&map->ht); in dom_xml_local_prefix_map_dtor() 224 GC_DELREF(map->ht); in dom_xml_ns_prefix_map_add() [all …]
|
/php-src/ext/opcache/ |
H A D | zend_persist.c | 100 ht->pDestructor = NULL; in zend_hash_persist() 101 ht->nInternalPointer = 0; in zend_hash_persist() 111 if (ht->nNumUsed == 0) { in zend_hash_persist() 122 if (HT_IS_PACKED(ht)) { in zend_hash_persist() 130 } else if (ht->nNumUsed > HT_MIN_SIZE && ht->nNumUsed < (uint32_t)(-(int32_t)ht->nTableMask) / 4) { in zend_hash_persist() 144 HT_HASH_RESET(ht); in zend_hash_persist() 145 memcpy(ht->arData, old_buckets, ht->nNumUsed * sizeof(Bucket)); in zend_hash_persist() 152 p = ht->arData + idx; in zend_hash_persist() 222 HashTable *ht; in zend_persist_zval() local 230 Z_ARR_P(z) = ht; in zend_persist_zval() [all …]
|
H A D | zend_file_cache.c | 173 HashTable *ht; \ 183 HashTable *ht; \ 310 ht->arData = NULL; 320 p = ht->arPacked; 333 p = ht->arData; 392 HashTable *ht; local 498 HashTable *ht; local 1202 p = ht->arPacked; 1213 p = ht->arData; 1266 HashTable *ht; local [all …]
|
H A D | zend_persist_calc.c | 52 static void zend_hash_persist_calc(HashTable *ht) in zend_hash_persist_calc() argument 54 if ((HT_FLAGS(ht) & HASH_FLAG_UNINITIALIZED) || ht->nNumUsed == 0) { in zend_hash_persist_calc() 58 if (HT_IS_PACKED(ht)) { in zend_hash_persist_calc() 59 ADD_SIZE(HT_PACKED_USED_SIZE(ht)); in zend_hash_persist_calc() 60 } else if (ht->nNumUsed > HT_MIN_SIZE && ht->nNumUsed < (uint32_t)(-(int32_t)ht->nTableMask) / 4) { in zend_hash_persist_calc() 64 hash_size = (uint32_t)(-(int32_t)ht->nTableMask); in zend_hash_persist_calc() 65 while (hash_size >> 2 > ht->nNumUsed) { in zend_hash_persist_calc() 70 ADD_SIZE(HT_USED_SIZE(ht)); in zend_hash_persist_calc() 118 HashTable *ht = Z_ARRVAL_P(z); in zend_persist_zval_calc() local 121 zend_hash_persist_calc(ht); in zend_persist_zval_calc() [all …]
|
/php-src/ext/phar/ |
H A D | gdbhelp | 11 set $ht = $arg0 12 set $p = $ht.pListHead 55 set $ht = $pharglobals.phar_fname_map 56 set $p = $ht.pListHead 88 set $ht = $pharglobals.phar_fname_map 89 set $p = $ht.pListHead
|
/php-src/ext/spl/ |
H A D | spl_array.c | 108 intern->ht_iter = zend_hash_iterator_add(ht, zend_hash_get_current_pos(ht)); in spl_array_create_ht_iter() 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 528 HashTable *ht; in spl_array_unset_dimension_ex() local 560 zend_hash_move_forward_ex(ht, spl_array_get_pos_ptr(ht, intern)); in spl_array_unset_dimension_ex() 567 zend_hash_del(ht, key.key); in spl_array_unset_dimension_ex() 738 HashTable *ht; in spl_array_get_properties_for() local 764 ht = zend_array_dup(ht); in spl_array_get_properties_for() 766 GC_ADDREF(ht); in spl_array_get_properties_for() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_watch.h | 78 HashTable ht; member 102 HashTable ht; member 109 HashTable *ht; member
|
/php-src/Zend/tests/lazy_objects/ |
H A D | gh15823.phpt | 19 // Builds properties ht without lazy initialization 22 // Lazy initialization fails during fetching of properties ht
|
/php-src/ext/readline/ |
H A D | readline_cli.c | 417 …tion_generator_ht(const char *text, size_t textlen, int *state, HashTable *ht, void **pData) /* {{… in cli_completion_generator_ht() argument 423 zend_hash_internal_pointer_reset(ht); in cli_completion_generator_ht() 426 while(zend_hash_has_more_elements(ht) == SUCCESS) { in cli_completion_generator_ht() 427 zend_hash_get_current_key(ht, &name, &number); in cli_completion_generator_ht() 430 *pData = zend_hash_get_current_data_ptr(ht); in cli_completion_generator_ht() 432 zend_hash_move_forward(ht); in cli_completion_generator_ht() 435 if (zend_hash_move_forward(ht) == FAILURE) { in cli_completion_generator_ht() 472 …li_completion_generator_func(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_func() argument 475 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func() 496 …_completion_generator_define(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_define() argument [all …]
|
/php-src/main/ |
H A D | php_variables.c | 56 zend_hash_update_ind(ht, key, val); in php_register_variable_quick() 203 HashTable *ht; in php_register_variable_ex() local 207 ht = Z_ARRVAL_P(track_vars_array); in php_register_variable_ex() 208 zend_symtable_str_del(ht, var, var_len); in php_register_variable_ex() 604 static zend_always_inline void import_environment_variable(HashTable *ht, char *env) in import_environment_variable() argument 623 zend_hash_index_update(ht, idx, &val); in import_environment_variable() 625 php_register_variable_quick(env, name_len, &val, ht); in import_environment_variable() 720 HashTable *ht; in php_register_server_variables() local 729 ht = Z_ARRVAL_P(arr); in php_register_server_variables() 738 php_register_variable_quick("PHP_AUTH_PW", sizeof("PHP_AUTH_PW")-1, &tmp, ht); in php_register_server_variables() [all …]
|
/php-src/ext/standard/ |
H A D | php_http.h | 24 PHPAPI void php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
|
H A D | var.c | 36 HashTable ht; member 752 zv = zend_hash_index_find(&data->ht, key); in php_add_var_hash() 764 zend_hash_index_add_new(&data->ht, key, &zv_n); in php_add_var_hash() 770 zend_hash_index_add_new(&data->ht, key + 1, var); in php_add_var_hash() 888 if (!zend_hash_add(ht, name, val)) { in php_var_serialize_try_add_sleep_prop() 982 ZEND_HASH_FOREACH_KEY_VAL_IND(ht, index, key, data) { in php_var_serialize_nested_data() 1217 HashTable *ht; in php_var_serialize_intern() local 1231 php_var_serialize_class(buf, &tmp, ht, var_hash); in php_var_serialize_intern() 1232 zend_array_release(ht); in php_var_serialize_intern() 1331 zend_hash_init(&d->ht, 16, NULL, ZVAL_PTR_DTOR, 0); in php_var_serialize_init() [all …]
|