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

123

/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_format_object.cpp88 HashTable *ht = Z_ARRVAL_PP(format); local
91 if (zend_hash_num_elements(ht) != 2) {
98 zend_hash_internal_pointer_reset_ex(ht, &pos);
99 zend_hash_get_current_data_ex(ht, (void**)&z, &pos);
108 zend_hash_move_forward_ex(ht, &pos);
109 zend_hash_get_current_data_ex(ht, (void**)&z, &pos);
/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);
95 zend_hash_update(ht, name, name_len+1, &data, sizeof(zval*), NULL);
99 if (ht) {
111 if (zend_hash_add(ht, index, index_len, tmpdata, sizeof(zval*), NULL) == SUCCESS) {
116 zend_hash_update(directories, path, path_len+1, &ht, sizeof(HashTable*), NULL);
124 if (ht
253 HashTable *ht = *pht; local
[all...]
/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, char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
113 _zend_ts_hash_quick_add_or_update(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
124 _zend_ts_hash_index_update_or_next_insert(TsHashTable *ht, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
135 zend_ts_hash_add_empty_element(TsHashTable *ht, char *arKey, uint nKeyLength) argument
146 zend_ts_hash_graceful_destroy(TsHashTable *ht) argument
158 zend_ts_hash_apply(TsHashTable *ht, apply_func_t apply_func TSRMLS_DC) argument
165 zend_ts_hash_apply_with_argument(TsHashTable *ht, apply_func_arg_t apply_func, void *argument TSRMLS_DC) argument
183 zend_ts_hash_reverse_apply(TsHashTable *ht, apply_func_t apply_func TSRMLS_DC) argument
190 zend_ts_hash_del_key_or_index(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, int flag) argument
201 zend_ts_get_hash_value(TsHashTable *ht, char *arKey, uint nKeyLength) argument
212 zend_ts_hash_find(TsHashTable *ht, char *arKey, uint nKeyLength, void **pData) argument
223 zend_ts_hash_quick_find(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, void **pData) argument
234 zend_ts_hash_index_find(TsHashTable *ht, ulong h, void **pData) argument
245 zend_ts_hash_exists(TsHashTable *ht, char *arKey, uint nKeyLength) argument
256 zend_ts_hash_index_exists(TsHashTable *ht, ulong h) argument
301 zend_ts_hash_sort(TsHashTable *ht, sort_func_t sort_func, compare_func_t compare_func, int renumber TSRMLS_DC) argument
325 zend_ts_hash_minmax(TsHashTable *ht, compare_func_t compar, int flag, void **pData TSRMLS_DC) argument
336 zend_ts_hash_num_elements(TsHashTable *ht) argument
347 zend_ts_hash_rehash(TsHashTable *ht) argument
359 zend_ts_hash_display_pListTail(TsHashTable *ht) argument
366 zend_ts_hash_display(TsHashTable *ht) argument
[all...]
H A Dzend_exceptions.c354 if (zend_hash_find(ht, key, sizeof(key), (void**)&tmp) == SUCCESS) { \
521 HashTable *ht = Z_ARRVAL_PP(frame); local
537 if (zend_hash_find(ht, "file", sizeof("file"), (void**)&file) == SUCCESS) {
542 if (zend_hash_find(ht, "line", sizeof("line"), (void**)&tmp) == SUCCESS) {
564 if (zend_hash_find(ht, "args", sizeof("args"), (void**)&tmp) == SUCCESS) {
H A Dzend_hash.h100 ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
101 ZEND_API int _zend_hash_init_ex(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC);
102 ZEND_API void zend_hash_destroy(HashTable *ht);
103 ZEND_API void zend_hash_clean(HashTable *ht);
104 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) _zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
105 #define zend_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) _zend_hash_init_ex((ht), (nSize), (pDestructor), (persistent), (bApplyProtection) ZEND_FILE_LINE_CC)
108 ZEND_API int _zend_hash_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC);
109 #define zend_hash_update(ht, arKe
356 zend_symtable_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest) argument
363 zend_symtable_del(HashTable *ht, const char *arKey, uint nKeyLength) argument
370 zend_symtable_find(HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
377 zend_symtable_exists(HashTable *ht, const char *arKey, uint nKeyLength) argument
383 zend_symtable_update_current_key_ex(HashTable *ht, const char *arKey, uint nKeyLength, int mode, HashPosition *pos) 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);
231 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index);
233 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index);
311 curnode = php_dom_libxml_hash_iter(objmap->ht, 0);
313 curnode = php_dom_libxml_notation_iter(objmap->ht,
[all...]
H A Dnode.c1806 HashTable *ht = Z_ARRVAL_P(xpath_array); local
1810 if (zend_hash_find(ht, "query", sizeof("query"), (void**)&tmp) == SUCCESS &&
1821 if (zend_hash_find(ht, "namespaces", sizeof("namespaces"), (void**)&tmp) == SUCCESS &&
H A Dphp_dom.h84 xmlHashTable *ht; member in struct:_dom_nnodemap_object
120 void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, xmlChar *local, xmlChar *ns TSRMLS_DC);
122 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index);
123 xmlNode *php_dom_libxml_notation_iter(xmlHashTable *ht, int index);
/PHP_TRUNK/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); local
173 if (zend_hash_find(ht, "file", sizeof("file"), (void**)&file) == SUCCESS) {
174 if (zend_hash_find(ht, "line", sizeof("line"), (void**)&tmp) == SUCCESS) {
190 if (zend_hash_find(ht, "args", sizeof("args"), (void**)&tmp) == SUCCESS) {
H A Dphp_mysqlnd.c109 HashTable *ht = mysqlnd_reverse_api_get_api_list(TSRMLS_C); local
113 for (zend_hash_internal_pointer_reset_ex(ht, &pos);
114 zend_hash_get_current_data_ex(ht, (void **) &ext, &pos) == SUCCESS;
115 zend_hash_move_forward_ex(ht, &pos)
/PHP_TRUNK/ext/phar/
H A Ddirstream.c144 static int phar_add_empty(HashTable *ht, char *arKey, uint nKeyLength) /* {{{ */ argument
148 return zend_hash_update(ht, arKey, nKeyLength, (void *) &dummy, sizeof(void *), NULL);
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c406 static char *cli_completion_generator_ht(const char *text, int textlen, int *state, HashTable *ht, void **pData TSRMLS_DC) /* {{{ */ argument
412 zend_hash_internal_pointer_reset(ht);
415 while(zend_hash_has_more_elements(ht) == SUCCESS) {
416 zend_hash_get_current_key(ht, &name, &number, 0);
419 zend_hash_get_current_data(ht, pData);
421 zend_hash_move_forward(ht);
424 if (zend_hash_move_forward(ht) == FAILURE) {
460 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) /* {{{ */
463 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func TSRMLS_CC);
484 static char *cli_completion_generator_define(const char *text, int textlen, int *state, HashTable *ht TSRMLS_D
[all...]
/PHP_TRUNK/ext/sockets/
H A Dmulticast.c114 static int php_get_if_index_from_array(const HashTable *ht, const char *key, argument
119 if (zend_hash_find(ht, key, strlen(key) + 1, (void **)&val) == FAILURE) {
127 static int php_get_address_from_array(const HashTable *ht, const char *key, argument
133 if (zend_hash_find(ht, key, strlen(key) + 1, (void **)&val) == FAILURE) {
H A Dsendrecvmsg.c82 HashTable ht; member in struct:__anon1
95 zend_hash_init(&ancillary_registry.ht, 32, NULL, NULL, 1);
105 zend_hash_update(&ancillary_registry.ht, (char*)&key, sizeof(key), \
137 zend_hash_destroy(&ancillary_registry.ht);
156 if (zend_hash_find(&ancillary_registry.ht, (char*)&key, sizeof(key),
/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->nApplyCount > 0) {
58 for (zend_hash_internal_pointer_reset(ht);
59 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTENT;
60 zend_hash_move_forward(ht)
79 if (zend_hash_get_current_data_ex(ht, (void **)&zdata, NULL) == FAILURE || !zdata || !(*zdata)) {
139 ht->nApplyCount++;
141 ht->nApplyCount--;
H A Dformatted_print.c372 php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC) argument
673 if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
687 if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
701 if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
717 if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
745 if ((result=php_formatted_print(ht, &len, 0, 1 TSRMLS_CC))==NULL) {
776 if ((result=php_formatted_print(ht, &len, 1, 1 TSRMLS_CC))==NULL) {
H A Dvar_unserializer.c292 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, long elements, int objprops) argument
324 if (zend_hash_index_find(ht, Z_LVAL_P(key), (void **)&old_data)==SUCCESS) {
327 zend_hash_index_update(ht, Z_LVAL_P(key), &data, sizeof(data), NULL);
330 if (zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, (void **)&old_data)==SUCCESS) {
333 zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, &data, sizeof(data), NULL);
339 zend_hash_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, &data,
/PHP_TRUNK/ext/intl/converter/
H A Dconverter.c201 HashTable *ht = Z_ARRVAL_P(val); local
205 for(zend_hash_internal_pointer_reset_ex(ht, &pos);
206 zend_hash_get_current_data_ex(ht, (void**)&tmpzval, &pos) == SUCCESS;
207 zend_hash_move_forward_ex(ht, &pos)) {
293 HashTable *ht = Z_ARRVAL_P(val); local
296 for(zend_hash_internal_pointer_reset_ex(ht, &pos);
297 zend_hash_get_current_data_ex(ht, (void**)&tmpzval, &pos) == SUCCESS;
298 zend_hash_move_forward_ex(ht, &pos)) {
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c52 static uint zend_hash_persist_calc(HashTable *ht, int (*pPersistElement)(void *pElement TSRMLS_DC), size_t el_size TSRMLS_DC) argument
54 Bucket *p = ht->pListHead;
87 if (ht->nTableMask) {
88 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
91 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
135 ADD_DUP_SIZE(z->value.ht, sizeof(HashTable));
136 ADD_SIZE(zend_hash_persist_calc(z->value.ht, (int (*)(void* TSRMLS_DC)) zend_persist_zval_ptr_calc, sizeof(zval**) TSRMLS_CC));
H A Dzend_persist.c60 static void zend_hash_persist(HashTable *ht, void (*pPersistElement)(void *pElement TSRMLS_DC), size_t el_size TSRMLS_DC) argument
62 Bucket *p = ht->pListHead;
112 if (ht->pListHead) {
113 ht->pListHead = zend_shared_alloc_get_xlat_entry(ht->pListHead);
115 if (ht->pListTail) {
116 ht->pListTail = zend_shared_alloc_get_xlat_entry(ht->pListTail);
118 if (ht->pInternalPointer) {
119 ht
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_watch.h73 HashTable *ht; member in union:_phpdbg_watchpoint_t::__anon12
H A Dphpdbg_watch.c97 void phpdbg_create_ht_watchpoint(HashTable *ht, phpdbg_watchpoint_t *watch) { argument
98 phpdbg_create_addr_watchpoint(ht, sizeof(HashTable), watch);
121 HashTable *ht; local
125 ht = Z_ARRVAL_P(watch->addr.zv);
128 ht = Z_OBJPROP_P(watch->addr.zv);
134 phpdbg_create_ht_watchpoint(ht, watch);
149 HashTable *ht; local
160 ht = Z_ARRVAL_P(watch->addr.zv);
163 ht = Z_OBJPROP_P(watch->addr.zv);
174 for (zend_hash_internal_pointer_reset_ex(ht,
220 HashTable *ht; local
[all...]
H A Dphpdbg_utils.h129 static void zend_hash_get_current_key_zval_ex(const HashTable *ht, zval *key, HashPosition *pos) { argument
132 p = pos ? (*pos) : ht->pInternalPointer;
/PHP_TRUNK/main/
H A Dphp_variables.c134 HashTable *ht; local
138 ht = Z_ARRVAL_P(track_vars_array);
139 zend_symtable_del(ht, var, var_len + 1);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c591 HashTable *ht = op_array->static_variables; local
593 op_array->static_variables = ht;

Completed in 37 milliseconds

123