Home
last modified time | relevance | path

Searched refs:ht (Results 1 – 25 of 102) sorted by relevance

12345

/PHP-8.0/Zend/
H A Dzend_ts_hash.c65 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 Dzend_hash.c41 #define HT_ASSERT_RC1(ht) HT_ASSERT(ht, GC_REFCOUNT(ht) == 1) argument
288 ht->nNumUsed = ht->nNumOfElements = ht->nNextFreeElement = 2; in zend_new_pair()
309 ht->nTableSize += ht->nTableSize; in zend_hash_packed_grow()
488 iter->ht = ht; in zend_hash_iterator_add()
506 iter->ht = ht; in zend_hash_iterator_add()
527 iter->ht = ht; in zend_hash_iterator_pos()
549 iter->ht = ht; in zend_hash_iterator_pos_ex()
582 if (iter->ht == ht) { in _zend_hash_iterators_remove()
603 if (iter->ht == ht) { in zend_hash_iterators_lower_pos()
632 if (iter->ht == ht) { in zend_hash_iterators_advance()
[all …]
H A Dzend_hash.h46 #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)
240 zend_hash_has_more_elements_ex(ht, &(ht)->nInternalPointer)
242 zend_hash_move_forward_ex(ht, &(ht)->nInternalPointer)
244 zend_hash_move_backwards_ex(ht, &(ht)->nInternalPointer)
[all …]
H A Dzend_ts_hash.h39 ZEND_API void zend_ts_hash_destroy(TsHashTable *ht);
40 ZEND_API void zend_ts_hash_clean(TsHashTable *ht);
77 ZEND_API void zend_ts_hash_rehash(TsHashTable *ht);
82 void zend_ts_hash_display(TsHashTable *ht);
93 zv = zend_ts_hash_str_find(ht, str, len); in zend_ts_hash_str_find_ptr()
102 zv = zend_ts_hash_str_update(ht, str, len, &tmp); in zend_ts_hash_str_update_ptr()
111 zv = zend_ts_hash_str_add(ht, str, len, &tmp); in zend_ts_hash_str_add_ptr()
117 return zend_ts_hash_find(ht, key) != NULL; in zend_ts_hash_exists()
122 return zend_ts_hash_index_find(ht, h) != NULL; in zend_ts_hash_index_exists()
127 #define ZEND_TS_INIT_SYMTABLE(ht) \ argument
[all …]
H A Dzend_weakrefs.c29 HashTable ht; member
74 HashTable *ht = ptr; in zend_weakref_unref() local
79 zend_hash_destroy(ht); in zend_weakref_unref()
80 FREE_HASHTABLE(ht); in zend_weakref_unref()
129 HashTable *ht = ptr; in zend_weakref_unregister() local
137 FREE_HASHTABLE(ht); in zend_weakref_unregister()
422 HashTable *ht; in zend_weakmap_get_properties_for() local
423 ALLOC_HASHTABLE(ht); in zend_weakmap_get_properties_for()
441 return ht; in zend_weakmap_get_properties_for()
449 return &wm->ht; in zend_weakmap_get_gc()
[all …]
H A Dzend_weakrefs.h31 ZEND_API zval *zend_weakrefs_hash_add(HashTable *ht, zend_object *key, zval *pData);
32 ZEND_API zend_result zend_weakrefs_hash_del(HashTable *ht, zend_object *key);
33 static zend_always_inline void *zend_weakrefs_hash_add_ptr(HashTable *ht, zend_object *key, void *p… in zend_weakrefs_hash_add_ptr() argument
36 if ((zv = zend_weakrefs_hash_add(ht, key, &tmp))) { in zend_weakrefs_hash_add_ptr()
H A Dzend_gc.c707 if (EXPECTED(!ht) || UNEXPECTED(GC_REF_CHECK_COLOR(ht, GC_BLACK))) { in gc_scan_black()
708 ht = NULL; in gc_scan_black()
764 p = ht->arData; in gc_scan_black()
828 if (EXPECTED(!ht) || UNEXPECTED(GC_REF_CHECK_COLOR(ht, GC_GREY))) { in gc_mark_grey()
829 ht = NULL; in gc_mark_grey()
886 p = ht->arData; in gc_mark_grey()
1016 ht = NULL; in gc_scan()
1070 p = ht->arData; in gc_scan()
1189 ht = NULL; in gc_collect_white()
1245 p = ht->arData; in gc_collect_white()
[all …]
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_wait.c45 HashTable *ht[2]; member
68 info->ht[0] = ht1; in phpdbg_array_intersect_init()
69 info->ht[1] = ht2; in phpdbg_array_intersect_init()
82 int invalid = !info->ht[0] + !info->ht[1]; in phpdbg_array_intersect()
85 invalid = !info->ht[0]; in phpdbg_array_intersect()
97 info->ht[0] = NULL; in phpdbg_array_intersect()
101 info->ht[1] = NULL; in phpdbg_array_intersect()
109 zend_hash_move_forward_ex(info->ht[0], &info->pos[0]); in phpdbg_array_intersect()
113 zend_hash_move_forward_ex(info->ht[1], &info->pos[1]); in phpdbg_array_intersect()
122 HashTable *ht; in phpdbg_webdata_decompress() local
[all …]
H A Dphpdbg_webdata_transfer.c30 HashTable *ht; in phpdbg_webdata_compress() local
34 ht = Z_ARRVAL(array); in phpdbg_webdata_compress()
47 zend_hash_str_add(ht, ZEND_STRL("GLOBALS"), &zv[1]); in phpdbg_webdata_compress()
62 zend_hash_str_add(ht, ZEND_STRL("input"), &zv[2]); in phpdbg_webdata_compress()
72 zend_hash_str_add(ht, ZEND_STRL("sapi_name"), &zv[6]); in phpdbg_webdata_compress()
88 zend_hash_str_add(ht, ZEND_STRL("modules"), &zv[7]); in phpdbg_webdata_compress()
98 zend_hash_str_add(ht, ZEND_STRL("extensions"), &zv[8]); in phpdbg_webdata_compress()
114 zend_hash_str_add(ht, ZEND_STRL("cwd"), &zv[5]); in phpdbg_webdata_compress()
140 zend_hash_str_add(ht, ZEND_STRL("systemini"), &zv[3]); in phpdbg_webdata_compress()
157 zend_hash_str_add(ht, ZEND_STRL("userini"), &zv[4]); in phpdbg_webdata_compress()
H A Dphpdbg_watch.h78 HashTable ht; member
102 HashTable ht; member
113 HashTable *ht; member
/PHP-8.0/win32/
H A Dregistry.c80 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-8.0/ext/standard/
H A Dphp_http.h23 PHPAPI void php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
28 #define php_url_encode_hash(ht, formstr) php_url_encode_hash_ex((ht), (formstr), NULL, 0, NULL, 0, … argument
H A Dhttp.c24 PHPAPI void php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, in php_url_encode_hash_ex() argument
36 ZEND_ASSERT(ht); in php_url_encode_hash_ex()
38 if (GC_IS_RECURSIVE(ht)) { in php_url_encode_hash_ex()
51 ZEND_HASH_FOREACH_KEY_VAL(ht, idx, key, zdata) { in php_url_encode_hash_ex()
146 GC_TRY_PROTECT_RECURSION(ht); in php_url_encode_hash_ex()
148 GC_TRY_UNPROTECT_RECURSION(ht); in php_url_encode_hash_ex()
/PHP-8.0/ext/dom/
H A Dnamednodemap.c51 if (objmap->ht) { in dom_namednodemap_length_read()
52 count = xmlHashSize(objmap->ht); in dom_namednodemap_length_read()
103 if (objmap->ht) { in PHP_METHOD()
105 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, (xmlChar *) named); in PHP_METHOD()
107 notep = (xmlNotation *)xmlHashLookup(objmap->ht, (xmlChar *) named); in PHP_METHOD()
161 if (objmap->ht) { in PHP_METHOD()
163 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_METHOD()
165 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_METHOD()
219 if (objmap->ht) { in PHP_METHOD()
221 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, (xmlChar *) named); in PHP_METHOD()
[all …]
H A Ddom_iterators.c83 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index) /* {{{ */ in php_dom_libxml_hash_iter() argument
89 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_hash_iter()
94 xmlHashScan(ht, itemHashScanner, iter); in php_dom_libxml_hash_iter()
104 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index) /* {{{ */ in php_dom_libxml_notation_iter() argument
110 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_notation_iter()
115 xmlHashScan(ht, itemHashScanner, iter); in php_dom_libxml_notation_iter()
229 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward()
231 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward()
313 curnode = php_dom_libxml_hash_iter(objmap->ht, 0); in php_dom_get_iterator()
315 curnode = php_dom_libxml_notation_iter(objmap->ht, 0); in php_dom_get_iterator()
H A Dnodelist.c48 if (objmap->ht) { in dom_nodelist_length_read()
49 count = xmlHashSize(objmap->ht); in dom_nodelist_length_read()
130 if (objmap->ht) { in PHP_METHOD()
132 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_METHOD()
134 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_METHOD()
H A Dphp_dom.h85 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-8.0/ext/intl/dateformat/
H A Ddateformat_format_object.cpp92 HashTable *ht = Z_ARRVAL_P(format); in PHP_FUNCTION() local
96 if (zend_hash_num_elements(ht) != 2) { in PHP_FUNCTION()
104 while (idx < ht->nNumUsed) { in PHP_FUNCTION()
105 z = &ht->arData[idx].val; in PHP_FUNCTION()
111 if (idx >= ht->nNumUsed || !valid_format(z)) { in PHP_FUNCTION()
120 while (idx < ht->nNumUsed) { in PHP_FUNCTION()
121 z = &ht->arData[idx].val; in PHP_FUNCTION()
127 if (idx >= ht->nNumUsed || !valid_format(z)) { in PHP_FUNCTION()
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit_helpers.c444 GC_ADDREF(ht); in zend_jit_undefined_op_helper_write()
447 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_undefined_op_helper_write()
477 GC_ADDREF(ht); in zend_jit_fetch_dim_r_helper()
482 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper()
578 GC_ADDREF(ht); in zend_jit_fetch_dim_is_helper()
583 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper()
677 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_isset_helper()
2373 if (iter->ht == ht) { in _zend_hash_iterators_remove()
2394 HashTable *ht; in zend_jit_zval_array_dup() local
2398 ht = zend_array_dup(ht); in zend_jit_zval_array_dup()
[all …]
/PHP-8.0/ext/opcache/
H A Dzend_persist.c94 ht->pDestructor = NULL; in zend_hash_persist()
95 ht->nInternalPointer = 0; in zend_hash_persist()
105 if (ht->nNumUsed == 0) { in zend_hash_persist()
106 efree(HT_GET_DATA_ADDR(ht)); in zend_hash_persist()
107 ht->nTableMask = HT_MIN_MASK; in zend_hash_persist()
119 HT_SET_DATA_ADDR(ht, data); in zend_hash_persist()
120 } else if (ht->nNumUsed > HT_MIN_SIZE && ht->nNumUsed < (uint32_t)(-(int32_t)ht->nTableMask) / 4) { in zend_hash_persist()
134 HT_HASH_RESET(ht); in zend_hash_persist()
135 memcpy(ht->arData, old_buckets, ht->nNumUsed * sizeof(Bucket)); in zend_hash_persist()
140 p = ht->arData + idx; in zend_hash_persist()
[all …]
H A Dzend_accelerator_util_funcs.c155 memcpy(p, HT_GET_DATA_ADDR(ht), HT_USED_SIZE(ht)); in zend_hash_clone_constants()
156 HT_SET_DATA_ADDR(ht, p); in zend_hash_clone_constants()
158 p = ht->arData; in zend_hash_clone_constants()
159 end = p + ht->nNumUsed; in zend_hash_clone_constants()
186 memcpy(p, HT_GET_DATA_ADDR(ht), HT_USED_SIZE(ht)); in zend_hash_clone_methods()
187 HT_SET_DATA_ADDR(ht, p); in zend_hash_clone_methods()
189 p = ht->arData; in zend_hash_clone_methods()
190 end = p + ht->nNumUsed; in zend_hash_clone_methods()
224 memcpy(p, HT_GET_DATA_ADDR(ht), HT_USED_SIZE(ht)); in zend_hash_clone_prop_info()
227 p = ht->arData; in zend_hash_clone_prop_info()
[all …]
H A Dzend_file_cache.c169 HashTable *ht; \
171 ht = (attributes); \
179 HashTable *ht; \
181 ht = (attributes); \
303 ht->arData = NULL;
310 p = ht->arData;
368 HashTable *ht; local
460 HashTable *ht; local
1099 p = ht->arData;
1151 HashTable *ht; local
[all …]
/PHP-8.0/ext/phar/
H A Dgdbhelp11 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-8.0/ext/spl/
H A Dspl_array.c127 intern->ht_iter = zend_hash_iterator_add(ht, zend_hash_get_current_pos(ht)); in spl_array_create_ht_iter()
129 spl_array_skip_protected(intern, ht); in spl_array_create_ht_iter()
136 spl_array_create_ht_iter(ht, intern); in spl_array_get_pos_ptr()
442 HashTable *ht; in spl_array_write_dimension_ex() local
516 HashTable *ht; in spl_array_unset_dimension_ex() local
535 if (ht == &EG(symbol_table)) { in spl_array_unset_dimension_ex()
551 zend_hash_move_forward_ex(ht, spl_array_get_pos_ptr(ht, intern)); in spl_array_unset_dimension_ex()
771 HashTable *ht; in spl_array_get_properties_for() local
797 ht = zend_array_dup(ht); in spl_array_get_properties_for()
799 GC_ADDREF(ht); in spl_array_get_properties_for()
[all …]
/PHP-8.0/ext/readline/
H A Dreadline_cli.c413 …tion_generator_ht(const char *text, size_t textlen, int *state, HashTable *ht, void **pData) /* {{… in cli_completion_generator_ht() argument
419 zend_hash_internal_pointer_reset(ht); in cli_completion_generator_ht()
422 while(zend_hash_has_more_elements(ht) == SUCCESS) { in cli_completion_generator_ht()
423 zend_hash_get_current_key(ht, &name, &number); in cli_completion_generator_ht()
426 *pData = zend_hash_get_current_data_ptr(ht); in cli_completion_generator_ht()
428 zend_hash_move_forward(ht); in cli_completion_generator_ht()
431 if (zend_hash_move_forward(ht) == FAILURE) { in cli_completion_generator_ht()
468 …li_completion_generator_func(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_func() argument
471 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func()
492 …_completion_generator_define(const char *text, size_t textlen, int *state, HashTable *ht) /* {{{ */ in cli_completion_generator_define() argument
[all …]

Completed in 122 milliseconds

12345