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

12

/PHP_5_5/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_5_5/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_5_5/ext/opcache/
H A Dzend_persist.c59 static void zend_hash_persist(HashTable *ht, void (*pPersistElement)(void *pElement TSRMLS_DC), size_t el_size TSRMLS_DC) argument
61 Bucket *p = ht->pListHead;
111 if (ht->pListHead) {
112 ht->pListHead = zend_shared_alloc_get_xlat_entry(ht->pListHead);
114 if (ht->pListTail) {
115 ht->pListTail = zend_shared_alloc_get_xlat_entry(ht->pListTail);
117 if (ht->pInternalPointer) {
118 ht
[all...]
H A Dzend_persist_calc.c51 static uint zend_hash_persist_calc(HashTable *ht, int (*pPersistElement)(void *pElement TSRMLS_DC), size_t el_size TSRMLS_DC) argument
53 Bucket *p = ht->pListHead;
86 if (ht->nTableMask) {
87 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
90 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
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, sizeof(zval**) TSRMLS_CC));
H A Dzend_accelerator_util_funcs.c49 static void zend_hash_clone_zval(HashTable *ht, HashTable *source, int bind);
89 static int compact_hash_table(HashTable *ht) argument
95 if (!ht->nNumOfElements) {
100 if (ht->nNumOfElements >= 0x80000000) {
104 while ((1U << i) < ht->nNumOfElements) {
110 if (nSize >= ht->nTableSize) {
115 t = (Bucket **)pemalloc(nSize * sizeof(Bucket *), ht->persistent);
120 pefree(ht->arBuckets, ht->persistent);
122 ht
267 zend_hash_clone_zval(HashTable *ht, HashTable *source, int bind) argument
387 zend_hash_clone_methods(HashTable *ht, HashTable *source, zend_class_entry *old_ce, zend_class_entry *ce TSRMLS_DC) argument
499 zend_hash_clone_prop_info(HashTable *ht, HashTable *source, zend_class_entry *old_ce, zend_class_entry *ce TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/phar/
H A Ddirstream.c152 static int phar_add_empty(HashTable *ht, char *arKey, uint nKeyLength) /* {{{ */ argument
156 return zend_hash_update(ht, arKey, nKeyLength, (void *) &dummy, sizeof(void *), NULL);
/PHP_5_5/ext/soap/
H A Dphp_schema.c2063 static void* schema_find_by_ref(HashTable *ht, char *ref) argument
2067 if (zend_hash_find(ht, ref, strlen(ref)+1, (void**)&tmp) == SUCCESS) {
2072 if (zend_hash_find(ht, ref, strlen(ref)+1, (void**)&tmp) == SUCCESS) {
2130 static void schema_attributegroup_fixup(sdlCtx *ctx, sdlAttributePtr attr, HashTable *ht) argument
2157 HashTable *ht = emalloc(sizeof(HashTable)); local
2158 zend_hash_init(ht, zend_hash_num_elements(newAttr->extraAttributes), NULL, delete_extra_attribute, 0);
2159 zend_hash_copy(ht, newAttr->extraAttributes, copy_extra_attribute, &node, sizeof(xmlNodePtr));
2160 newAttr->extraAttributes = ht;
2164 zend_hash_add(ht, key, key_len, &newAttr, sizeof(sdlAttributePtr), NULL);
2170 schema_attributegroup_fixup(ctx,*tmp_attr, ht);
[all...]
/PHP_5_5/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_5_5/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.c389 php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC) argument
690 if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
704 if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
718 if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
734 if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
762 if ((result=php_formatted_print(ht, &len, 0, 1 TSRMLS_CC))==NULL) {
793 if ((result=php_formatted_print(ht, &len, 1, 1 TSRMLS_CC))==NULL) {
H A Dvar_unserializer.c299 static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, long elements, int objprops) argument
331 if (zend_hash_index_find(ht, Z_LVAL_P(key), (void **)&old_data)==SUCCESS) {
334 zend_hash_index_update(ht, Z_LVAL_P(key), &data, sizeof(data), NULL);
337 if (zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, (void **)&old_data)==SUCCESS) {
340 zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, &data, sizeof(data), NULL);
346 if (zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, (void **)&old_data)==SUCCESS) {
349 zend_hash_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, &data,
/PHP_5_5/Zend/
H A Dzend_hash.h100 ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
101 ZEND_API int _zend_hash_init_ex(HashTable *ht, uint nSize, hash_func_t pHashFunction, 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), (pHashFunction), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
105 #define zend_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) _zend_hash_init_ex((ht), (nSize), (pHashFunction), (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
351 zend_symtable_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest) argument
358 zend_symtable_del(HashTable *ht, const char *arKey, uint nKeyLength) argument
365 zend_symtable_find(HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
372 zend_symtable_exists(HashTable *ht, const char *arKey, uint nKeyLength) argument
378 zend_symtable_update_current_key_ex(HashTable *ht, const char *arKey, uint nKeyLength, int mode, HashPosition *pos) argument
[all...]
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, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC) argument
72 _zend_ts_hash_init_ex(TsHashTable *ht, uint nSize, hash_func_t pHashFunction, 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) {
/PHP_5_5/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_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); 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
112 p = ht->pListHead;
/PHP_5_5/ext/pdo/
H A Dpdo_dbh.c472 HashTable *ht = Z_ARRVAL_P(ctor_args); local
476 fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0);
477 p = ht->pListHead;
/PHP_5_5/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_5_5/main/
H A Dphp_variables.c130 HashTable *ht; local
134 ht = Z_ARRVAL_P(track_vars_array);
135 zend_symtable_del(ht, var, var_len + 1);
/PHP_5_5/ext/spl/
H A Dspl_fixedarray.c153 HashTable *ht = zend_std_get_properties(obj TSRMLS_CC); local
163 return ht;
170 HashTable *ht = zend_std_get_properties(obj TSRMLS_CC); local
174 int j = zend_hash_num_elements(ht);
178 zend_hash_index_update(ht, i, (void *)&intern->array->elements[i], sizeof(zval *), NULL);
181 zend_hash_index_update(ht, i, (void *)&EG(uninitialized_zval_ptr), sizeof(zval *), NULL);
187 zend_hash_index_del(ht, i);
192 return ht;
/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, void **pData TSRMLS_DC) /* {{{ */ argument
415 zend_hash_internal_pointer_reset(ht);
418 while(zend_hash_has_more_elements(ht) == SUCCESS) {
419 zend_hash_get_current_key(ht, &name, &number, 0);
422 zend_hash_get_current_data(ht, pData);
424 zend_hash_move_forward(ht);
427 if (zend_hash_move_forward(ht) == FAILURE) {
463 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) /* {{{ */
466 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func TSRMLS_CC);
487 static char *cli_completion_generator_define(const char *text, int textlen, int *state, HashTable *ht TSRMLS_D
[all...]

Completed in 36 milliseconds

12