/PHP-7.4/Zend/ |
H A D | zend_ts_hash.c | 65 ht->reader = 0; in _zend_ts_hash_init() 74 end_write(ht); in zend_ts_hash_destroy() 87 end_write(ht); in zend_ts_hash_clean() 96 end_write(ht); in zend_ts_hash_add() 107 end_write(ht); in zend_ts_hash_update() 118 end_write(ht); in zend_ts_hash_next_index_insert() 129 end_write(ht); in zend_ts_hash_index_update() 140 end_write(ht); in zend_ts_hash_add_empty_element() 149 end_write(ht); in zend_ts_hash_graceful_destroy() 217 end_read(ht); in zend_ts_hash_find() [all …]
|
H A D | zend_hash.c | 41 #define HT_ASSERT_RC1(ht) HT_ASSERT(ht, GC_REFCOUNT(ht) == 1) argument 266 ht->nNumUsed = ht->nNumOfElements = ht->nNextFreeElement = 2; in zend_new_pair() 287 ht->nTableSize += ht->nTableSize; in zend_hash_packed_grow() 466 iter->ht = ht; in zend_hash_iterator_add() 484 iter->ht = ht; in zend_hash_iterator_add() 505 iter->ht = ht; in zend_hash_iterator_pos() 527 iter->ht = ht; in zend_hash_iterator_pos_ex() 560 if (iter->ht == ht) { in _zend_hash_iterators_remove() 581 if (iter->ht == ht) { in zend_hash_iterators_lower_pos() 610 if (iter->ht == ht) { in zend_hash_iterators_advance() [all …]
|
H A D | zend_hash.h | 46 #define HT_FLAGS(ht) (ht)->u.flags argument 59 ((ht)->nNumUsed == (ht)->nNumOfElements) 70 #define HT_ITERATORS_COUNT(ht) (ht)->u.v.nIteratorsCount argument 71 #define HT_ITERATORS_OVERFLOW(ht) (HT_ITERATORS_COUNT(ht) == 0xff) argument 72 #define HT_HAS_ITERATORS(ht) (HT_ITERATORS_COUNT(ht) != 0) argument 77 HT_SET_ITERATORS_COUNT(ht, HT_ITERATORS_COUNT(ht) + 1) 79 HT_SET_ITERATORS_COUNT(ht, HT_ITERATORS_COUNT(ht) - 1) 242 zend_hash_has_more_elements_ex(ht, &(ht)->nInternalPointer) 244 zend_hash_move_forward_ex(ht, &(ht)->nInternalPointer) 246 zend_hash_move_backwards_ex(ht, &(ht)->nInternalPointer) [all …]
|
H A D | zend_ts_hash.h | 39 ZEND_API void zend_ts_hash_destroy(TsHashTable *ht); 40 ZEND_API void zend_ts_hash_clean(TsHashTable *ht); 82 ZEND_API int zend_ts_hash_rehash(TsHashTable *ht); 87 void zend_ts_hash_display(TsHashTable *ht); 98 zv = zend_ts_hash_str_find(ht, str, len); in zend_ts_hash_str_find_ptr() 107 zv = zend_ts_hash_str_update(ht, str, len, &tmp); in zend_ts_hash_str_update_ptr() 116 zv = zend_ts_hash_str_add(ht, str, len, &tmp); in zend_ts_hash_str_add_ptr() 122 return zend_ts_hash_find(ht, key) != NULL; in zend_ts_hash_exists() 127 return zend_ts_hash_index_find(ht, h) != NULL; in zend_ts_hash_index_exists() 132 #define ZEND_TS_INIT_SYMTABLE(ht) \ argument [all …]
|
H A D | zend_gc.c | 710 if (EXPECTED(!ht) || UNEXPECTED(GC_REF_CHECK_COLOR(ht, GC_BLACK))) { in gc_scan_black() 711 ht = NULL; in gc_scan_black() 763 p = ht->arData; in gc_scan_black() 830 if (EXPECTED(!ht) || UNEXPECTED(GC_REF_CHECK_COLOR(ht, GC_GREY))) { in gc_mark_grey() 831 ht = NULL; in gc_mark_grey() 884 p = ht->arData; in gc_mark_grey() 1017 ht = NULL; in gc_scan() 1067 p = ht->arData; in gc_scan() 1189 ht = NULL; in gc_collect_white() 1241 p = ht->arData; in gc_collect_white() [all …]
|
H A D | zend_types.h | 314 #define HT_HASH(ht, idx) \ argument 325 #define HT_SIZE(ht) \ argument 326 HT_SIZE_EX((ht)->nTableSize, (ht)->nTableMask) 327 #define HT_USED_SIZE(ht) \ argument 328 (HT_HASH_SIZE((ht)->nTableMask) + ((size_t)(ht)->nNumUsed * sizeof(Bucket))) 331 char *p = (char*)&HT_HASH(ht, (ht)->nTableMask); \ 346 # define HT_HASH_RESET(ht) \ argument 347 memset(&HT_HASH(ht, (ht)->nTableMask), HT_INVALID_IDX, HT_HASH_SIZE((ht)->nTableMask)) 357 (ht)->arData = (Bucket*)(((char*)(ptr)) + HT_HASH_SIZE((ht)->nTableMask)); \ 360 ((char*)((ht)->arData) - HT_HASH_SIZE((ht)->nTableMask)) [all …]
|
H A D | zend_list.h | 50 void zend_close_rsrc_list(HashTable *ht); 51 void zend_destroy_rsrc_list(HashTable *ht);
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_wait.c | 47 HashTable *ht[2]; member 74 info->ht[0] = ht1; in phpdbg_array_intersect_init() 75 info->ht[1] = ht2; in phpdbg_array_intersect_init() 88 int invalid = !info->ht[0] + !info->ht[1]; in phpdbg_array_intersect() 91 invalid = !info->ht[0]; in phpdbg_array_intersect() 103 info->ht[0] = NULL; in phpdbg_array_intersect() 107 info->ht[1] = NULL; in phpdbg_array_intersect() 115 zend_hash_move_forward_ex(info->ht[0], &info->pos[0]); in phpdbg_array_intersect() 119 zend_hash_move_forward_ex(info->ht[1], &info->pos[1]); in phpdbg_array_intersect() 128 HashTable *ht; in phpdbg_webdata_decompress() local [all …]
|
H A D | phpdbg_webdata_transfer.c | 32 HashTable *ht; in phpdbg_webdata_compress() local 36 ht = Z_ARRVAL(array); in phpdbg_webdata_compress() 49 zend_hash_str_add(ht, ZEND_STRL("GLOBALS"), &zv[1]); in phpdbg_webdata_compress() 64 zend_hash_str_add(ht, ZEND_STRL("input"), &zv[2]); in phpdbg_webdata_compress() 74 zend_hash_str_add(ht, ZEND_STRL("sapi_name"), &zv[6]); in phpdbg_webdata_compress() 90 zend_hash_str_add(ht, ZEND_STRL("modules"), &zv[7]); in phpdbg_webdata_compress() 100 zend_hash_str_add(ht, ZEND_STRL("extensions"), &zv[8]); in phpdbg_webdata_compress() 116 zend_hash_str_add(ht, ZEND_STRL("cwd"), &zv[5]); in phpdbg_webdata_compress() 142 zend_hash_str_add(ht, ZEND_STRL("systemini"), &zv[3]); in phpdbg_webdata_compress() 159 zend_hash_str_add(ht, ZEND_STRL("userini"), &zv[4]); in phpdbg_webdata_compress()
|
H A D | phpdbg_watch.h | 80 HashTable ht; member 104 HashTable ht; member 115 HashTable *ht; member
|
/PHP-7.4/win32/ |
H A D | registry.c | 82 HashTable *ht = NULL; in LoadDirectory() local 103 if (!ht) { in LoadDirectory() 105 if (!ht) { in LoadDirectory() 115 if (ht) { in LoadDirectory() 122 zend_hash_add(ht, index, tmpdata); in LoadDirectory() 133 if (ht == NULL) { in LoadDirectory() 134 ht = parent_ht; in LoadDirectory() 175 HashTable *ht = (HashTable *)Z_PTR_P(zv); in delete_internal_hashtable() local 176 zend_hash_destroy(ht); in delete_internal_hashtable() 177 free(ht); in delete_internal_hashtable() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | php_http.h | 25 PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, 30 #define php_url_encode_hash(ht, formstr) php_url_encode_hash_ex((ht), (formstr), NULL, 0, NULL, 0, … argument
|
H A D | http.c | 26 PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, in php_url_encode_hash_ex() argument 39 if (!ht) { in php_url_encode_hash_ex() 43 if (GC_IS_RECURSIVE(ht)) { in php_url_encode_hash_ex() 56 ZEND_HASH_FOREACH_KEY_VAL(ht, idx, key, zdata) { in php_url_encode_hash_ex() 151 if (!(GC_FLAGS(ht) & GC_IMMUTABLE)) { in php_url_encode_hash_ex() 152 GC_PROTECT_RECURSION(ht); in php_url_encode_hash_ex() 155 if (!(GC_FLAGS(ht) & GC_IMMUTABLE)) { in php_url_encode_hash_ex() 156 GC_UNPROTECT_RECURSION(ht); in php_url_encode_hash_ex()
|
/PHP-7.4/ext/dom/ |
H A D | namednodemap.c | 100 if (objmap->ht) { in dom_namednodemap_length_read() 101 count = xmlHashSize(objmap->ht); in dom_namednodemap_length_read() 153 if (objmap->ht) { in PHP_FUNCTION() 155 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, (xmlChar *) named); in PHP_FUNCTION() 157 notep = (xmlNotation *)xmlHashLookup(objmap->ht, (xmlChar *) named); in PHP_FUNCTION() 233 if (objmap->ht) { in PHP_FUNCTION() 235 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_FUNCTION() 237 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_FUNCTION() 293 if (objmap->ht) { in PHP_FUNCTION() 295 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, (xmlChar *) named); in PHP_FUNCTION() [all …]
|
H A D | dom_iterators.c | 85 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index) /* {{{ */ in php_dom_libxml_hash_iter() argument 91 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_hash_iter() 96 xmlHashScan(ht, itemHashScanner, iter); in php_dom_libxml_hash_iter() 106 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index) /* {{{ */ in php_dom_libxml_notation_iter() argument 112 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_notation_iter() 117 xmlHashScan(ht, itemHashScanner, iter); in php_dom_libxml_notation_iter() 231 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward() 233 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward() 315 curnode = php_dom_libxml_hash_iter(objmap->ht, 0); in php_dom_get_iterator() 317 curnode = php_dom_libxml_notation_iter(objmap->ht, 0); in php_dom_get_iterator()
|
H A D | nodelist.c | 68 if (objmap->ht) { in dom_nodelist_length_read() 69 count = xmlHashSize(objmap->ht); in dom_nodelist_length_read() 152 if (objmap->ht) { in PHP_FUNCTION() 154 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_FUNCTION() 156 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_FUNCTION()
|
H A D | php_dom.h | 86 xmlHashTable *ht; member 122 void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, xm… 124 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index); 125 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index);
|
/PHP-7.4/ext/intl/dateformat/ |
H A D | dateformat_format_object.cpp | 94 HashTable *ht = Z_ARRVAL_P(format); in PHP_FUNCTION() local 98 if (zend_hash_num_elements(ht) != 2) { in PHP_FUNCTION() 106 while (idx < ht->nNumUsed) { in PHP_FUNCTION() 107 z = &ht->arData[idx].val; in PHP_FUNCTION() 113 if (idx >= ht->nNumUsed || !valid_format(z)) { in PHP_FUNCTION() 122 while (idx < ht->nNumUsed) { in PHP_FUNCTION() 123 z = &ht->arData[idx].val; in PHP_FUNCTION() 129 if (idx >= ht->nNumUsed || !valid_format(z)) { in PHP_FUNCTION()
|
/PHP-7.4/ext/opcache/ |
H A D | zend_persist.c | 88 ht->pDestructor = NULL; in zend_hash_persist() 89 ht->nInternalPointer = 0; in zend_hash_persist() 99 if (ht->nNumUsed == 0) { in zend_hash_persist() 100 efree(HT_GET_DATA_ADDR(ht)); in zend_hash_persist() 101 ht->nTableMask = HT_MIN_MASK; in zend_hash_persist() 113 HT_SET_DATA_ADDR(ht, data); in zend_hash_persist() 114 } else if (ht->nNumUsed > HT_MIN_SIZE && ht->nNumUsed < (uint32_t)(-(int32_t)ht->nTableMask) / 4) { in zend_hash_persist() 128 HT_HASH_RESET(ht); in zend_hash_persist() 129 memcpy(ht->arData, old_buckets, ht->nNumUsed * sizeof(Bucket)); in zend_hash_persist() 134 p = ht->arData + idx; in zend_hash_persist() [all …]
|
H A D | zend_accelerator_util_funcs.c | 151 memcpy(p, HT_GET_DATA_ADDR(ht), HT_USED_SIZE(ht)); in zend_hash_clone_constants() 152 HT_SET_DATA_ADDR(ht, p); in zend_hash_clone_constants() 154 p = ht->arData; in zend_hash_clone_constants() 155 end = p + ht->nNumUsed; in zend_hash_clone_constants() 182 memcpy(p, HT_GET_DATA_ADDR(ht), HT_USED_SIZE(ht)); in zend_hash_clone_methods() 183 HT_SET_DATA_ADDR(ht, p); in zend_hash_clone_methods() 185 p = ht->arData; in zend_hash_clone_methods() 186 end = p + ht->nNumUsed; in zend_hash_clone_methods() 220 memcpy(p, HT_GET_DATA_ADDR(ht), HT_USED_SIZE(ht)); in zend_hash_clone_prop_info() 223 p = ht->arData; in zend_hash_clone_prop_info() [all …]
|
H A D | zend_persist_calc.c | 58 static void zend_hash_persist_calc(HashTable *ht) in zend_hash_persist_calc() argument 60 if ((HT_FLAGS(ht) & HASH_FLAG_UNINITIALIZED) || ht->nNumUsed == 0) { in zend_hash_persist_calc() 64 …if (!(HT_FLAGS(ht) & HASH_FLAG_PACKED) && ht->nNumUsed > HT_MIN_SIZE && ht->nNumUsed < (uint32_t)(… in zend_hash_persist_calc() 68 hash_size = (uint32_t)(-(int32_t)ht->nTableMask); in zend_hash_persist_calc() 69 while (hash_size >> 2 > ht->nNumUsed) { in zend_hash_persist_calc() 72 ADD_SIZE(hash_size * sizeof(uint32_t) + ht->nNumUsed * sizeof(Bucket)); in zend_hash_persist_calc() 74 ADD_SIZE(HT_USED_SIZE(ht)); in zend_hash_persist_calc()
|
/PHP-7.4/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-7.4/ext/spl/ |
H A D | spl_array.c | 118 *ht_ptr = ht; in spl_array_replace_hash_table() 135 intern->ht_iter = zend_hash_iterator_add(ht, zend_hash_get_current_pos(ht)); in spl_array_create_ht_iter() 137 spl_array_skip_protected(intern, ht); in spl_array_create_ht_iter() 454 HashTable *ht; in spl_array_write_dimension_ex() local 528 HashTable *ht; in spl_array_unset_dimension_ex() local 547 if (ht == &EG(symbol_table)) { in spl_array_unset_dimension_ex() 563 zend_hash_move_forward_ex(ht, spl_array_get_pos_ptr(ht, intern)); in spl_array_unset_dimension_ex() 791 HashTable *ht; in spl_array_get_properties_for() local 818 ht = zend_array_dup(ht); in spl_array_get_properties_for() 820 GC_ADDREF(ht); in spl_array_get_properties_for() [all …]
|
/PHP-7.4/ext/readline/ |
H A D | readline_cli.c | 411 …tion_generator_ht(const char *text, size_t textlen, int *state, HashTable *ht, void **pData) /* {{… in cli_completion_generator_ht() argument 417 zend_hash_internal_pointer_reset(ht); in cli_completion_generator_ht() 420 while(zend_hash_has_more_elements(ht) == SUCCESS) { in cli_completion_generator_ht() 421 zend_hash_get_current_key(ht, &name, &number); in cli_completion_generator_ht() 424 *pData = zend_hash_get_current_data_ptr(ht); in cli_completion_generator_ht() 426 zend_hash_move_forward(ht); in cli_completion_generator_ht() 429 if (zend_hash_move_forward(ht) == FAILURE) { in cli_completion_generator_ht() 466 …li_completion_generator_func(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_func() argument 469 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func() 490 …_completion_generator_define(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_define() argument [all …]
|
/PHP-7.4/main/ |
H A D | php_variables.c | 64 zend_hash_update_ind(ht, key, val); in php_register_variable_quick() 177 HashTable *ht; in php_register_variable_ex() local 181 ht = Z_ARRVAL_P(track_vars_array); in php_register_variable_ex() 182 zend_symtable_str_del(ht, var, var_len); in php_register_variable_ex() 559 static zend_always_inline void import_environment_variable(HashTable *ht, char *env) in import_environment_variable() argument 584 zend_hash_index_update(ht, idx, &val); in import_environment_variable() 586 php_register_variable_quick(env, name_len, &val, ht); in import_environment_variable() 693 HashTable *ht; in php_register_server_variables() local 702 ht = Z_ARRVAL_P(arr); in php_register_server_variables() 711 php_register_variable_quick("PHP_AUTH_PW", sizeof("PHP_AUTH_PW")-1, &tmp, ht); in php_register_server_variables() [all …]
|