Home
last modified time | relevance | path

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

1234

/PHP-5.5/Zend/
H A Dzend_ts_hash.c67 ht->reader = 0; in _zend_ts_hash_init()
86 end_write(ht); in zend_ts_hash_destroy()
99 end_write(ht); in zend_ts_hash_clean()
108 end_write(ht); in _zend_ts_hash_add_or_update()
119 end_write(ht); in _zend_ts_hash_quick_add_or_update()
207 end_read(ht); in zend_ts_get_hash_value()
218 end_read(ht); in zend_ts_hash_find()
229 end_read(ht); in zend_ts_hash_quick_find()
240 end_read(ht); in zend_ts_hash_index_find()
251 end_read(ht); in zend_ts_hash_exists()
[all …]
H A Dzend_hash.c95 if ((ht)->nNumOfElements > (ht)->nTableSize) { \
454 ht->nTableSize = (ht->nTableSize << 1); in zend_hash_do_resize()
455 ht->nTableMask = ht->nTableSize - 1; in zend_hash_do_resize()
568 pefree(ht->arBuckets, ht->persistent); in zend_hash_destroy()
673 pefree(ht->arBuckets, ht->persistent); in zend_hash_graceful_destroy()
692 pefree(ht->arBuckets, ht->persistent); in zend_hash_graceful_reverse_destroy()
1101 ht->pInternalPointer = ht->pListHead; in zend_hash_internal_pointer_reset_ex()
1115 ht->pInternalPointer = ht->pListTail; in zend_hash_internal_pointer_end_ex()
1271 q = ht->arBuckets[h & ht->nTableMask]; in zend_hash_update_current_key_ex()
1433 ht->arBuckets[p->h & ht->nTableMask] = p; in zend_hash_update_current_key_ex()
[all …]
H A Dzend_hash.h103 ZEND_API void zend_hash_clean(HashTable *ht);
158 #define zend_hash_index_del(ht, h) \ argument
195 #define zend_hash_has_more_elements(ht) \ argument
196 zend_hash_has_more_elements_ex(ht, NULL)
197 #define zend_hash_move_forward(ht) \ argument
198 zend_hash_move_forward_ex(ht, NULL)
199 #define zend_hash_move_backwards(ht) \ argument
200 zend_hash_move_backwards_ex(ht, NULL)
205 #define zend_hash_get_current_key_type(ht) \ argument
304 #define ZEND_INIT_SYMTABLE(ht) \ in END_EXTERN_C() argument
[all …]
H A Dzend_ts_hash.h42 ZEND_API void zend_ts_hash_destroy(TsHashTable *ht);
43 ZEND_API void zend_ts_hash_clean(TsHashTable *ht);
82 #define zend_ts_hash_del(ht, arKey, nKeyLength) \ argument
84 #define zend_ts_hash_index_del(ht, h) \ argument
107 ZEND_API int zend_ts_hash_num_elements(TsHashTable *ht);
109 ZEND_API int zend_ts_hash_rehash(TsHashTable *ht);
115 void zend_ts_hash_display_pListTail(TsHashTable *ht);
116 void zend_ts_hash_display(TsHashTable *ht);
121 #define ZEND_TS_INIT_SYMTABLE(ht) \ argument
122 ZEND_TS_INIT_SYMTABLE_EX(ht, 2, 0)
[all …]
H A Dzend_variables.c42 if (zvalue->value.ht && (zvalue->value.ht != &EG(symbol_table))) { in _zval_dtor_func()
45 zend_hash_destroy(zvalue->value.ht); in _zval_dtor_func()
46 FREE_HASHTABLE(zvalue->value.ht); in _zval_dtor_func()
129 HashTable *original_ht = zvalue->value.ht; in _zval_copy_ctor_func()
133 if (zvalue->value.ht == &EG(symbol_table)) { in _zval_copy_ctor_func()
138 zvalue->value.ht = tmp_ht; in _zval_copy_ctor_func()
H A Dzend_alloc.h178 #define ALLOC_HASHTABLE(ht) \ argument
179 (ht) = (HashTable *) emalloc(sizeof(HashTable))
181 #define FREE_HASHTABLE(ht) \ argument
182 efree(ht)
184 #define ALLOC_HASHTABLE_REL(ht) \ argument
185 (ht) = (HashTable *) emalloc_rel(sizeof(HashTable))
187 #define FREE_HASHTABLE_REL(ht) \ argument
188 efree_rel(ht)
/PHP-5.5/ext/opcache/
H A Dzend_accelerator_util_funcs.c120 pefree(ht->arBuckets, ht->persistent); in compact_hash_table()
122 ht->arBuckets = t; in compact_hash_table()
124 ht->nTableMask = ht->nTableSize - 1; in compact_hash_table()
257 if (ret->value.ht && ret->value.ht != &EG(symbol_table)) {
259 zend_hash_clone_zval(ret->value.ht, src->value.ht, 0);
282 ht->persistent = 0;
336 ht->pListTail = q;
384 ht->pInternalPointer = ht->pListHead;
403 ht->persistent = 0;
496 ht->pInternalPointer = ht->pListHead;
[all …]
H A Dzend_persist.c61 Bucket *p = ht->pListHead; in zend_hash_persist()
111 if (ht->pListHead) { in zend_hash_persist()
112 ht->pListHead = zend_shared_alloc_get_xlat_entry(ht->pListHead); in zend_hash_persist()
114 if (ht->pListTail) { in zend_hash_persist()
115 ht->pListTail = zend_shared_alloc_get_xlat_entry(ht->pListTail); in zend_hash_persist()
118 ht->pInternalPointer = zend_shared_alloc_get_xlat_entry(ht->pInternalPointer); in zend_hash_persist()
123 if (ht->nTableMask) { in zend_hash_persist()
125 if (ht->nNumOfElements) { in zend_hash_persist()
128 if (ht->arBuckets[i]) { in zend_hash_persist()
129 ht->arBuckets[i] = zend_shared_alloc_get_xlat_entry(ht->arBuckets[i]); in zend_hash_persist()
[all …]
H A Dzend_persist_calc.c51 static uint zend_hash_persist_calc(HashTable *ht, int (*pPersistElement)(void *pElement TSRMLS_DC),… in zend_hash_persist_calc() argument
53 Bucket *p = ht->pListHead; in zend_hash_persist_calc()
86 if (ht->nTableMask) { in zend_hash_persist_calc()
87 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize); in zend_hash_persist_calc()
90 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize); in zend_hash_persist_calc()
111 ADD_DUP_SIZE(z->value.ht, sizeof(HashTable));
112 …ADD_SIZE(zend_hash_persist_calc(z->value.ht, (int (*)(void* TSRMLS_DC)) zend_persist_zval_ptr_calc…
H A Dzend_accelerator_util_funcs.h34 void zend_accel_free_user_functions(HashTable *ht TSRMLS_DC);
/PHP-5.5/win32/
H A Dregistry.c64 HashTable *ht = NULL; in LoadDirectory() local
80 if (!ht) { in LoadDirectory()
81 ht = (HashTable*)malloc(sizeof(HashTable)); in LoadDirectory()
82 if (!ht) { in LoadDirectory()
85 zend_hash_init(ht, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1); in LoadDirectory()
99 if (ht) { in LoadDirectory()
124 if (ht == NULL) { in LoadDirectory()
125 ht = parent_ht; in LoadDirectory()
253 HashTable *ht = *pht; in UpdateIniFromRegistry() local
260 for (zend_hash_internal_pointer_reset_ex(ht, &pos); in UpdateIniFromRegistry()
[all …]
/PHP-5.5/ext/standard/
H A Dphp_http.h27 PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
32 #define php_url_encode_hash(ht, formstr) php_url_encode_hash_ex((ht), (formstr), NULL, 0, NULL, 0, … argument
H A Dhttp.c28 PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, in php_url_encode_hash_ex() argument
41 if (!ht) { in php_url_encode_hash_ex()
45 if (ht->nApplyCount > 0) { in php_url_encode_hash_ex()
58 for (zend_hash_internal_pointer_reset(ht); in php_url_encode_hash_ex()
59 …(key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXIST… in php_url_encode_hash_ex()
60 zend_hash_move_forward(ht) in php_url_encode_hash_ex()
79 if (zend_hash_get_current_data_ex(ht, (void **)&zdata, NULL) == FAILURE || !zdata || !(*zdata)) { in php_url_encode_hash_ex()
139 ht->nApplyCount++; in php_url_encode_hash_ex()
141 ht->nApplyCount--; in php_url_encode_hash_ex()
/PHP-5.5/ext/dom/
H A Dnamednodemap.c98 if (objmap->ht) { in dom_namednodemap_length_read()
99 count = xmlHashSize(objmap->ht); in dom_namednodemap_length_read()
150 if (objmap->ht) { in PHP_FUNCTION()
152 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, named); in PHP_FUNCTION()
154 notep = (xmlNotation *)xmlHashLookup(objmap->ht, named); in PHP_FUNCTION()
224 if (objmap->ht) { in PHP_FUNCTION()
226 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_FUNCTION()
228 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_FUNCTION()
282 if (objmap->ht) { in PHP_FUNCTION()
284 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, named); in PHP_FUNCTION()
[all …]
H A Dnodelist.c63 if (objmap->ht) { in dom_nodelist_length_read()
64 count = xmlHashSize(objmap->ht); in dom_nodelist_length_read()
128 if (objmap->ht) { in PHP_FUNCTION()
130 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_FUNCTION()
132 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_FUNCTION()
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()
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()
311 curnode = php_dom_libxml_hash_iter(objmap->ht, 0); in php_dom_get_iterator()
313 curnode = php_dom_libxml_notation_iter(objmap->ht, 0); in php_dom_get_iterator()
H A Dphp_dom.h84 xmlHashTable *ht; member
120 void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, xm…
122 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index);
123 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index);
/PHP-5.5/ext/intl/dateformat/
H A Ddateformat_format_object.cpp88 HashTable *ht = Z_ARRVAL_PP(format); in PHP_FUNCTION() local
91 if (zend_hash_num_elements(ht) != 2) { in PHP_FUNCTION()
98 zend_hash_internal_pointer_reset_ex(ht, &pos); in PHP_FUNCTION()
99 zend_hash_get_current_data_ex(ht, (void**)&z, &pos); in PHP_FUNCTION()
108 zend_hash_move_forward_ex(ht, &pos); in PHP_FUNCTION()
109 zend_hash_get_current_data_ex(ht, (void**)&z, &pos); in PHP_FUNCTION()
/PHP-5.5/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-5.5/ext/mysqlnd/
H A Dmysqlnd_bt.c45 if (zend_hash_find(ht, key, sizeof(key), (void**)&tmp) == SUCCESS) { \
155 HashTable *ht = Z_ARRVAL_PP(frame); in mysqlnd_build_trace_string() local
173 if (zend_hash_find(ht, "file", sizeof("file"), (void**)&file) == SUCCESS) { in mysqlnd_build_trace_string()
174 if (zend_hash_find(ht, "line", sizeof("line"), (void**)&tmp) == SUCCESS) { in mysqlnd_build_trace_string()
190 if (zend_hash_find(ht, "args", sizeof("args"), (void**)&tmp) == SUCCESS) { in mysqlnd_build_trace_string()
/PHP-5.5/ext/spl/
H A Dspl_array.c125 p = ht->arBuckets[intern->pos_h & ht->nTableMask]; in spl_hash_verify_pos_ex()
435 HashTable *ht; in spl_array_write_dimension_ex() local
450 if (ht->nApplyCount > 0) { in spl_array_write_dimension_ex()
461 if (ht->nApplyCount > 0) { in spl_array_write_dimension_ex()
473 if (ht->nApplyCount > 0) { in spl_array_write_dimension_ex()
487 if (ht->nApplyCount > 0) { in spl_array_write_dimension_ex()
509 HashTable *ht; in spl_array_unset_dimension_ex() local
521 if (ht->nApplyCount > 0) { in spl_array_unset_dimension_ex()
525 if (ht == &EG(symbol_table)) { in spl_array_unset_dimension_ex()
572 if (ht->nApplyCount > 0) { in spl_array_unset_dimension_ex()
[all …]
/PHP-5.5/ext/readline/
H A Dreadline_cli.c409 static char *cli_completion_generator_ht(const char *text, int textlen, int *state, HashTable *ht, … in cli_completion_generator_ht() argument
415 zend_hash_internal_pointer_reset(ht); in cli_completion_generator_ht()
418 while(zend_hash_has_more_elements(ht) == SUCCESS) { in cli_completion_generator_ht()
419 zend_hash_get_current_key(ht, &name, &number, 0); in cli_completion_generator_ht()
422 zend_hash_get_current_data(ht, pData); in cli_completion_generator_ht()
424 zend_hash_move_forward(ht); in cli_completion_generator_ht()
427 if (zend_hash_move_forward(ht) == FAILURE) { in cli_completion_generator_ht()
463 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht in cli_completion_generator_func()
466 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func TSRMLS_CC); in cli_completion_generator_func()
487 …tion_generator_define(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) /* {{{ */ in cli_completion_generator_define()
[all …]
/PHP-5.5/ext/soap/
H A Dsoap.c2848 zend_hash_move_forward(ht);
4128 HashTable *ht = NULL; local
4136 ht = Z_OBJPROP(h->retval);
4172 if (ht) {
4184 if (ht) {
4356 HashTable *ht; local
4363 ht = Z_OBJPROP_PP(header);
4491 HashTable *ht; local
4503 if (ht == NULL) {
4933 zend_hash_destroy(ht);
[all …]
/PHP-5.5/
H A D.gdbinit203 ____print_ht $zvalue->value.ht 1
232 set $ht = $zobj->properties
233 if $ht
234 printf "(%d): ", $ht->nNumOfElements
237 ____print_ht $ht 1
290 set $ht = $arg0
291 set $p = $ht->pListHead
322 set $ht = (HashTable*)$arg0
323 set $p = $ht->pListHead
388 set $ht = $arg0
[all …]
/PHP-5.5/ext/sockets/
H A Dsendrecvmsg.c82 HashTable ht; member
95 zend_hash_init(&ancillary_registry.ht, 32, NULL, NULL, 1); in init_ancillary_registry()
105 zend_hash_update(&ancillary_registry.ht, (char*)&key, sizeof(key), \ in init_ancillary_registry()
137 zend_hash_destroy(&ancillary_registry.ht); in destroy_ancillary_registry()
156 if (zend_hash_find(&ancillary_registry.ht, (char*)&key, sizeof(key), in get_ancillary_reg_entry()

Completed in 86 milliseconds

1234