Searched defs:ht (Results 1 - 25 of 66) sorted by relevance

123

/PHP_TRUNK/ext/sockets/
H A Dmulticast.c116 static int php_get_if_index_from_array(const HashTable *ht, const char *key, argument
121 if ((val = zend_hash_str_find(ht, key, strlen(key))) == NULL) {
129 static int php_get_address_from_array(const HashTable *ht, const char *key, argument
134 if ((val = zend_hash_str_find(ht, key, strlen(key))) == NULL) {
H A Dsendrecvmsg.c82 HashTable ht; member in struct:__anon18
99 zend_hash_init(&ancillary_registry.ht, 32, NULL, ancillary_registery_free_elem, 1);
109 zend_hash_str_update_mem(&ancillary_registry.ht, (char*)&key, sizeof(key) - 1, (void*)&entry, sizeof(entry))
140 zend_hash_destroy(&ancillary_registry.ht);
159 if ((entry = zend_hash_str_find_ptr(&ancillary_registry.ht, (char*)&key, sizeof(key) - 1)) != NULL) {
/PHP_TRUNK/Zend/
H A Dzend_ts_hash.c25 static void begin_read(TsHashTable *ht) argument
28 tsrm_mutex_lock(ht->mx_reader);
29 if ((++(ht->reader)) == 1) {
30 tsrm_mutex_lock(ht->mx_writer);
32 tsrm_mutex_unlock(ht->mx_reader);
36 static void end_read(TsHashTable *ht) argument
39 tsrm_mutex_lock(ht->mx_reader);
40 if ((--(ht->reader)) == 0) {
41 tsrm_mutex_unlock(ht->mx_writer);
43 tsrm_mutex_unlock(ht
47 begin_write(TsHashTable *ht) argument
54 end_write(TsHashTable *ht) argument
62 _zend_ts_hash_init(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC) argument
72 _zend_ts_hash_init_ex(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC) argument
82 zend_ts_hash_destroy(TsHashTable *ht) argument
94 zend_ts_hash_clean(TsHashTable *ht) argument
102 _zend_ts_hash_add_or_update(TsHashTable *ht, zend_string *key, zval *pData, int flag ZEND_FILE_LINE_DC) argument
113 _zend_ts_hash_index_add_or_update(TsHashTable *ht, zend_ulong h, zval *pData, int flag ZEND_FILE_LINE_DC) argument
124 zend_ts_hash_add_empty_element(TsHashTable *ht, zend_string *key) argument
135 zend_ts_hash_graceful_destroy(TsHashTable *ht) argument
147 zend_ts_hash_apply(TsHashTable *ht, apply_func_t apply_func) argument
154 zend_ts_hash_apply_with_argument(TsHashTable *ht, apply_func_arg_t apply_func, void *argument) argument
161 zend_ts_hash_apply_with_arguments(TsHashTable *ht, apply_func_args_t apply_func, int num_args, ...) argument
172 zend_ts_hash_reverse_apply(TsHashTable *ht, apply_func_t apply_func) argument
179 zend_ts_hash_del(TsHashTable *ht, zend_string *key) argument
190 zend_ts_hash_index_del(TsHashTable *ht, zend_ulong h) argument
201 zend_ts_hash_find(TsHashTable *ht, zend_string *key) argument
212 zend_ts_hash_index_find(TsHashTable *ht, zend_ulong h) argument
223 zend_ts_hash_exists(TsHashTable *ht, zend_string *key) argument
234 zend_ts_hash_index_exists(TsHashTable *ht, zend_ulong h) argument
279 zend_ts_hash_sort(TsHashTable *ht, sort_func_t sort_func, compare_func_t compare_func, int renumber) argument
303 zend_ts_hash_minmax(TsHashTable *ht, compare_func_t compar, int flag) argument
314 zend_ts_hash_num_elements(TsHashTable *ht) argument
325 zend_ts_hash_rehash(TsHashTable *ht) argument
336 zend_ts_hash_str_find(TsHashTable *ht, const char *key, size_t len) argument
347 _zend_ts_hash_str_update(TsHashTable *ht, const char *key, size_t len, zval *pData ZEND_FILE_LINE_DC) argument
358 _zend_ts_hash_str_add(TsHashTable *ht, const char *key, size_t len, zval *pData ZEND_FILE_LINE_DC) argument
[all...]
H A Dzend_ts_hash.h40 ZEND_API void _zend_ts_hash_init(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
41 ZEND_API void _zend_ts_hash_init_ex(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC);
42 ZEND_API void zend_ts_hash_destroy(TsHashTable *ht);
43 ZEND_API void zend_ts_hash_clean(TsHashTable *ht);
45 #define zend_ts_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) \
46 _zend_ts_hash_init(ht, nSize, pDestructor, persistent ZEND_FILE_LINE_CC)
47 #define zend_ts_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) \
48 _zend_ts_hash_init_ex(ht, nSize, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_CC)
52 ZEND_API zval *_zend_ts_hash_add_or_update(TsHashTable *ht, zend_string *key, zval *pData, int flag ZEND_FILE_LINE_DC);
53 #define zend_ts_hash_update(ht, ke
114 zend_ts_hash_str_find_ptr(TsHashTable *ht, const char *str, size_t len) argument
122 zend_ts_hash_str_update_ptr(TsHashTable *ht, const char *str, size_t len, void *pData) argument
131 zend_ts_hash_str_add_ptr(TsHashTable *ht, const char *str, size_t len, void *pData) argument
[all...]
H A Dzend_gc.c296 HashTable *ht; local
301 ht = NULL;
315 ht = get_gc(&tmp, &zv, &n);
317 if (EXPECTED(!ht)) {
333 if (EXPECTED(!ht)) {
346 ht = (zend_array*)ref;
363 if (!ht->nNumUsed) return;
364 p = ht->arData;
365 end = p + ht->nNumUsed;
404 HashTable *ht; local
532 HashTable *ht; local
693 HashTable *ht; local
875 HashTable *ht = NULL; local
[all...]
H A Dzend_constants.c458 static void* zend_hash_add_constant(HashTable *ht, zend_string *key, zend_constant *c) argument
464 ret = zend_hash_add_ptr(ht, key, copy);
H A Dzend_list.c236 void zend_close_rsrc_list(HashTable *ht) argument
238 zend_hash_reverse_apply(ht, zend_close_rsrc);
242 void zend_destroy_rsrc_list(HashTable *ht) argument
244 zend_hash_graceful_reverse_destroy(ht);
H A Dzend_generators.h45 HashTable ht; /* if > 4 children */ member in union:_zend_generator_node::__anon2
/PHP_TRUNK/win32/
H A Dregistry.c82 HashTable *ht = NULL; local
103 if (!ht) {
104 ht = (HashTable*)malloc(sizeof(HashTable));
105 if (!ht) {
108 zend_hash_init(ht, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1);
111 zend_hash_str_update(ht, name, name_len, &data);
115 if (ht) {
122 zend_hash_add(ht, index, tmpdata);
125 zend_hash_str_update_mem(directories, path, path_len, ht, sizeof(HashTable));
133 if (ht
175 HashTable *ht = (HashTable *)Z_PTR_P(zv); local
262 HashTable *ht = (HashTable *)zend_hash_str_find_ptr(PW32G(registry_directories), path, path_len); local
[all...]
/PHP_TRUNK/ext/dom/
H A Ddom_iterators.c83 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index) /* {{{ */ argument
89 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) {
94 xmlHashScan(ht, itemHashScanner, iter);
104 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index) /* {{{ */ argument
110 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) {
115 xmlHashScan(ht, itemHashScanner, iter);
229 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index);
231 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index);
310 curnode = php_dom_libxml_hash_iter(objmap->ht, 0);
312 curnode = php_dom_libxml_notation_iter(objmap->ht,
[all...]
H A Dnode.c1726 HashTable *ht = Z_ARRVAL_P(xpath_array); local
1730 tmp = zend_hash_str_find(ht, "query", sizeof("query")-1);
1741 tmp = zend_hash_str_find(ht, "namespaces", sizeof("namespaces")-1);
H A Dphp_dom.h88 xmlHashTable *ht; member in struct:_dom_nnodemap_object
123 void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, xmlChar *local, xmlChar *ns);
125 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index);
126 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index);
/PHP_TRUNK/ext/mysqlnd/
H A Dphp_mysqlnd.c101 HashTable *ht = mysqlnd_reverse_api_get_api_list(); local
104 ZEND_HASH_FOREACH_PTR(ht, ext) {
/PHP_TRUNK/ext/phar/
H A Ddirstream.c143 static int phar_add_empty(HashTable *ht, char *arKey, uint nKeyLength) /* {{{ */ argument
148 return (zend_hash_str_update(ht, arKey, nKeyLength, &dummy) != NULL) ? SUCCESS : FAILURE;
/PHP_TRUNK/ext/standard/
H A Dhttp.c28 PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, argument
41 if (!ht) {
45 if (ht->u.v.nApplyCount > 0) {
58 ZEND_HASH_FOREACH_KEY_VAL_IND(ht, idx, key, zdata) {
139 if (ZEND_HASH_APPLY_PROTECTION(ht)) {
140 ht->u.v.nApplyCount++;
143 if (ZEND_HASH_APPLY_PROTECTION(ht)) {
144 ht->u.v.nApplyCount--;
H A Dinfo.c96 static void php_info_print_stream_hash(const char *name, HashTable *ht) /* {{{ */ argument
100 if (ht) {
101 if (zend_hash_num_elements(ht)) {
110 ZEND_HASH_FOREACH_STR_KEY(ht, key) {
H A Dphp_var.h42 HashTable ht; member in struct:php_serialize_data
67 zend_hash_init(&(d)->ht, 16, NULL, ZVAL_PTR_DTOR, 0); \
83 zend_hash_destroy(&(d)->ht); \
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_wait.c47 HashTable *ht[2]; member in struct:__anon22
76 info->ht[0] = ht1;
77 info->ht[1] = ht2;
79 zend_hash_sort(info->ht[0], (compare_func_t) phpdbg_array_data_compare, 0);
80 zend_hash_sort(info->ht[1], (compare_func_t) phpdbg_array_data_compare, 0);
82 zend_hash_internal_pointer_reset_ex(info->ht[0], &info->pos[0]);
83 zend_hash_internal_pointer_reset_ex(info->ht[1], &info->pos[1]);
90 int invalid = !info->ht[0] + !info->ht[1];
93 invalid = !info->ht[
130 HashTable *ht; local
[all...]
H A Dphpdbg_webdata_transfer.c32 HashTable *ht; local
36 ht = Z_ARRVAL(array);
49 zend_hash_str_add(ht, ZEND_STRL("GLOBALS"), &zv[1]);
64 zend_hash_str_add(ht, ZEND_STRL("input"), &zv[2]);
74 zend_hash_str_add(ht, ZEND_STRL("sapi_name"), &zv[6]);
90 zend_hash_str_add(ht, ZEND_STRL("modules"), &zv[7]);
100 zend_hash_str_add(ht, ZEND_STRL("extensions"), &zv[8]);
116 zend_hash_str_add(ht, ZEND_STRL("cwd"), &zv[5]);
142 zend_hash_str_add(ht, ZEND_STRL("systemini"), &zv[3]);
159 zend_hash_str_add(ht, ZEND_STR
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_fixedarray.c149 HashTable *ht = zend_std_get_properties(obj); local
159 return ht;
166 HashTable *ht = zend_std_get_properties(obj); local
170 zend_long j = zend_hash_num_elements(ht);
174 zend_hash_index_update(ht, i, &intern->array->elements[i]);
179 zend_hash_index_update(ht, i, &EG(uninitialized_zval));
184 zend_hash_index_del(ht, i);
189 return ht;
/PHP_TRUNK/ext/intl/converter/
H A Dconverter.c206 HashTable *ht = Z_ARRVAL_P(val); local
209 ZEND_HASH_FOREACH_VAL(ht, tmpzval) {
283 HashTable *ht = Z_ARRVAL_P(val); local
285 ZEND_HASH_FOREACH_VAL(ht, tmpzval) {
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_format_object.cpp88 HashTable *ht = Z_ARRVAL_P(format); local
92 if (zend_hash_num_elements(ht) != 2) {
100 while (idx < ht->nNumUsed) {
101 z = &ht->arData[idx].val;
107 if (idx >= ht->nNumUsed || !valid_format(z)) {
116 while (idx < ht->nNumUsed) {
117 z = &ht->arData[idx].val;
123 if (idx >= ht->nNumUsed || !valid_format(z)) {
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c640 HashTable *ht = op_array->static_variables; local
642 op_array->static_variables = ht;
671 HashTable *ht = op_array->static_variables; local
673 op_array->static_variables = ht;
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c73 static void zend_hash_persist(HashTable *ht, zend_persist_func_t pPersistElement) argument
78 if (!(ht->u.flags & HASH_FLAG_INITIALIZED)) {
79 HT_SET_DATA_ADDR(ht, &uninitialized_bucket);
82 if (ht->nNumUsed == 0) {
83 efree(HT_GET_DATA_ADDR(ht));
84 ht->nTableMask = HT_MIN_MASK;
85 HT_SET_DATA_ADDR(ht, &uninitialized_bucket);
86 ht->u.flags &= ~HASH_FLAG_INITIALIZED;
89 if (ht->u.flags & HASH_FLAG_PACKED) {
90 void *data = HT_GET_DATA_ADDR(ht);
157 zend_hash_persist_immutable(HashTable *ht) argument
[all...]
H A Dzend_persist_calc.c52 static void zend_hash_persist_calc(HashTable *ht, void (*pPersistElement)(zval *pElement)) argument
57 if (!(ht->u.flags & HASH_FLAG_INITIALIZED) || ht->nNumUsed == 0) {
61 if (!(ht->u.flags & HASH_FLAG_PACKED) && ht->nNumUsed < -(int32_t)ht->nTableMask / 2) {
63 int32_t hash_size = -(int32_t)ht->nTableMask;
65 while (hash_size >> 1 > ht->nNumUsed) {
71 ADD_SIZE(hash_size * sizeof(uint32_t) + ht->nNumUsed * sizeof(Bucket));
73 ADD_SIZE(HT_USED_SIZE(ht));
[all...]

Completed in 39 milliseconds

123