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

123

/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/Zend/
H A Dzend_gc.c202 HashTable *ht; local
207 ht = NULL;
242 ht = props;
246 ht = &((zend_array*)ref)->ht;
264 if (!ht) return;
265 for (idx = 0; idx < ht->nNumUsed; idx++) {
266 p = ht->arData + idx;
273 if (idx == ht->nNumUsed-1) {
284 HashTable *ht; local
378 HashTable *ht; local
463 HashTable *ht; local
644 HashTable *ht; local
[all...]
H A Dzend_exceptions.c332 tmp = zend_hash_str_find(ht, key, sizeof(key)-1); \
459 static void _build_trace_string(smart_str *str, HashTable *ht, uint32_t num TSRMLS_DC) /* {{{ */ argument
467 file = zend_hash_str_find(ht, "file", sizeof("file")-1);
474 tmp = zend_hash_str_find(ht, "line", sizeof("line")-1);
497 tmp = zend_hash_str_find(ht, "args", sizeof("args")-1);
H A Dzend_constants.c480 static void* zend_hash_add_constant(HashTable *ht, zend_string *key, zend_constant *c) argument
486 ret = zend_hash_add_ptr(ht, key, copy);
H A Dzend_variables.c48 zend_hash_destroy(&arr->ht);
108 zend_hash_destroy(&arr->ht);
240 HashTable *ht; local
246 ht = Z_ARRVAL_P(zvalue);
248 zend_array_dup(Z_ARRVAL_P(zvalue), ht); local
317 p = zend_hash_find(&symbol_table->ht, key->key);
323 zend_hash_add_new(&symbol_table->ht, key->key, &tmp);
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 TSRMLS_DC) argument
154 zend_ts_hash_apply_with_argument(TsHashTable *ht, apply_func_arg_t apply_func, void *argument TSRMLS_DC) argument
172 zend_ts_hash_reverse_apply(TsHashTable *ht, apply_func_t apply_func TSRMLS_DC) 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 TSRMLS_DC) argument
303 zend_ts_hash_minmax(TsHashTable *ht, compare_func_t compar, int flag TSRMLS_DC) 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...]
/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);
227 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index);
229 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index);
304 curnode = php_dom_libxml_hash_iter(objmap->ht, 0);
306 curnode = php_dom_libxml_notation_iter(objmap->ht,
[all...]
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 TSRMLS_DC);
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/intl/dateformat/
H A Ddateformat_format_object.cpp88 HashTable *ht = Z_ARRVAL_P(format); local
91 if (zend_hash_num_elements(ht) != 2) {
98 zend_hash_internal_pointer_reset_ex(ht, &pos);
99 z = zend_hash_get_current_data_ex(ht, &pos);
108 zend_hash_move_forward_ex(ht, &pos);
109 z = zend_hash_get_current_data_ex(ht, &pos);
/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:__anon206
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/ext/mysqlnd/
H A Dphp_mysqlnd.c101 HashTable *ht = mysqlnd_reverse_api_get_api_list(TSRMLS_C); local
104 ZEND_HASH_FOREACH_PTR(ht, ext) {
/PHP_TRUNK/ext/standard/
H A Dphp_var.h42 HashTable ht; member in struct:php_serialize_data
66 zend_hash_init(&(d)->ht, 16, NULL, ZVAL_PTR_DTOR, 0); \
82 zend_hash_destroy(&(d)->ht); \
H A Dvar_unserializer.c299 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops) argument
321 if ((old_data = zend_hash_index_find(ht, Z_LVAL(key))) != NULL) {
325 data = zend_hash_index_update(ht, Z_LVAL(key), &d);
328 if ((old_data = zend_symtable_find(ht, Z_STR(key))) != NULL) {
332 data = zend_symtable_update(ht, Z_STR(key), &d);
340 data = zend_hash_update_ind(ht, Z_STR(key), &d);
342 if ((data = zend_hash_find(ht, Z_STR(key))) != NULL) {
350 data = zend_hash_update(ht, Z_STR(key), &d);
H A Dvar.c38 static uint zend_obj_num_elements(HashTable *ht) argument
44 num = ht->nNumOfElements;
45 for (idx = 0; idx < ht->nNumUsed; idx++) {
46 p = ht->arData + idx;
617 zv = zend_hash_index_find(&data->ht, key);
629 zend_hash_index_add_new(&data->ht, key, &zv_n);
635 zend_hash_index_add_new(&data->ht, key + 1, var);
695 HashTable *propers, *ht; local
700 ht = HASH_OF(retval_ptr);
701 ZEND_HASH_FOREACH_STR_KEY_VAL(ht, ke
[all...]
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) {
138 if (ZEND_HASH_APPLY_PROTECTION(ht)) {
139 ht->u.v.nApplyCount++;
142 if (ZEND_HASH_APPLY_PROTECTION(ht)) {
143 ht->u.v.nApplyCount--;
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c402 static char *cli_completion_generator_ht(const char *text, int textlen, int *state, HashTable *ht, void **pData TSRMLS_DC) /* {{{ */ argument
408 zend_hash_internal_pointer_reset(ht);
411 while(zend_hash_has_more_elements(ht) == SUCCESS) {
412 zend_hash_get_current_key(ht, &name, &number, 0);
415 *pData = zend_hash_get_current_data_ptr(ht);
417 zend_hash_move_forward(ht);
420 if (zend_hash_move_forward(ht) == FAILURE) {
433 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, symbol_table ? &symbol_table->ht : NULL, NULL TSRMLS_CC);
457 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) /* {{{ */
460 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (voi
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c72 static void zend_hash_persist(HashTable *ht, zend_persist_func_t pPersistElement TSRMLS_DC) argument
77 if (!ht->nTableMask) {
78 ht->arHash = (uint32_t*)&uninitialized_bucket;
81 if (ht->u.flags & HASH_FLAG_PACKED) {
82 zend_accel_store(ht->arData, sizeof(Bucket) * ht->nNumUsed);
83 ht->arHash = (uint32_t*)&uninitialized_bucket;
86 uint32_t *h = (uint32_t*)(d + ht->nNumUsed);
88 ZCG(mem) = (void*)(h + ht->nTableSize);
89 memcpy(d, ht
[all...]
H A Dzend_persist_calc.c52 static void zend_hash_persist_calc(HashTable *ht, void (*pPersistElement)(zval *pElement TSRMLS_DC) TSRMLS_DC) argument
57 if (!ht->nTableMask) {
60 if (ht->u.flags & HASH_FLAG_PACKED) {
61 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed);
63 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed + sizeof(uint32_t) * ht->nTableSize);
66 for (idx = 0; idx < ht->nNumUsed; idx++) {
67 p = ht->arData + idx;
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c527 HashTable *ht = op_array->static_variables; local
529 op_array->static_variables = ht;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_watch.h61 HashTable *ht; member in union:_phpdbg_watchpoint_t::__anon22
H A Dphpdbg_webdata_transfer.c32 HashTable *ht; local
36 ht = Z_ARRVAL(array);
46 zend_hash_copy(Z_ARRVAL(zv[1]), &EG(symbol_table).ht, NULL);
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_STR
[all...]
H A Dphpdbg_wait.c31 if ((zvp = zend_hash_str_find(&EG(symbol_table).ht, name, strlen(name)))) {
47 HashTable *ht[2]; member in struct:__anon6
76 info->ht[0] = ht1;
77 info->ht[1] = ht2;
79 zend_hash_sort(info->ht[0], zend_qsort, (compare_func_t) phpdbg_array_data_compare, 0 TSRMLS_CC);
80 zend_hash_sort(info->ht[1], zend_qsort, (compare_func_t) phpdbg_array_data_compare, 0 TSRMLS_CC);
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[
130 HashTable *ht; local
[all...]
/PHP_TRUNK/win32/
H A Dregistry.c64 HashTable *ht = NULL; local
80 if (!ht) {
81 ht = (HashTable*)malloc(sizeof(HashTable));
82 if (!ht) {
85 zend_hash_init(ht, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1);
87 zend_hash_str_update(ht, name, name_len, &data);
91 if (ht) {
98 zend_hash_add(ht, index, tmpdata);
101 zend_hash_str_update_mem(directories, path, path_len + 1, &ht, sizeof(HashTable*));
109 if (ht
240 HashTable *ht = pht; local
[all...]

Completed in 28 milliseconds

123