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

12

/PHP_5_4/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_4/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_4/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_5_4/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_4/ext/spl/
H A Dspl_array.c118 SPL_API int spl_hash_verify_pos_ex(spl_array_object * intern, HashTable * ht TSRMLS_DC) /* {{{ */
122 /* IS_CONSISTENT(ht);*/
124 /* HASH_PROTECT_RECURSION(ht);*/
125 p = ht->arBuckets[intern->pos_h & ht->nTableMask];
132 /* HASH_UNPROTECT_RECURSION(ht); */
140 HashTable *ht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); local
141 return spl_hash_verify_pos_ex(intern, ht TSRMLS_CC);
307 HashTable *ht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); local
313 if ((type == BP_VAR_W || type == BP_VAR_RW) && (ht
435 HashTable *ht; local
509 HashTable *ht; local
615 HashTable *ht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); local
633 HashTable *ht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); local
663 spl_array_object_verify_pos_ex(spl_array_object *object, HashTable *ht, const char *msg_prefix TSRMLS_DC) argument
[all...]
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_4/ext/standard/
H A Dformatted_print.c372 php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC) argument
671 if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
685 if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
699 if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
715 if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
743 if ((result=php_formatted_print(ht, &len, 0, 1 TSRMLS_CC))==NULL) {
774 if ((result=php_formatted_print(ht, &len, 1, 1 TSRMLS_CC))==NULL) {
H A Dhtml.c844 static inline int resolve_named_entity_html(const char *start, size_t length, const entity_ht *ht, unsigned *uni_cp1, unsigned *uni_cp2) argument
849 s = ht->buckets[hash % ht->num_elems];
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_EXISTANT;
60 zend_hash_move_forward(ht)
80 if (zend_hash_get_current_data_ex(ht, (void **)&zdata, NULL) == FAILURE || !zdata || !(*zdata)) {
140 ht->nApplyCount++;
142 ht->nApplyCount--;
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_5_4/ext/wddx/
H A Dwddx.c632 HashTable *ht; local
662 ht = Z_ARRVAL_P(var);
663 if (ht->nApplyCount > 1) {
667 ht->nApplyCount++;
669 ht->nApplyCount--;
673 ht = Z_OBJPROP_P(var);
674 if (ht->nApplyCount > 1) {
678 ht->nApplyCount++;
680 ht->nApplyCount--;
/PHP_5_4/Zend/
H A Dzend_hash.c32 #define CONNECT_TO_GLOBAL_DLLIST(element, ht) \
33 (element)->pListLast = (ht)->pListTail; \
34 (ht)->pListTail = (element); \
39 if (!(ht)->pListHead) { \
40 (ht)->pListHead = (element); \
42 if ((ht)->pInternalPointer == NULL) { \
43 (ht)->pInternalPointer = (element); \
52 static void _zend_is_inconsistent(const HashTable *ht, const char *file, int line) argument
54 if (ht->inconsistent==HT_OK) {
57 switch (ht
148 _zend_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC) argument
179 _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) argument
188 zend_hash_set_apply_protection(HashTable *ht, zend_bool bApplyProtection) argument
195 _zend_hash_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
278 _zend_hash_quick_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
359 zend_hash_add_empty_element(HashTable *ht, const char *arKey, uint nKeyLength) argument
367 _zend_hash_index_update_or_next_insert(HashTable *ht, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
440 zend_hash_do_resize(HashTable *ht) argument
465 zend_hash_rehash(HashTable *ht) argument
486 zend_hash_del_key_or_index(HashTable *ht, const char *arKey, uint nKeyLength, ulong h, int flag) argument
547 zend_hash_destroy(HashTable *ht) argument
575 zend_hash_clean(HashTable *ht) argument
610 zend_hash_apply_deleter(HashTable *ht, Bucket *p) argument
662 zend_hash_graceful_destroy(HashTable *ht) argument
679 zend_hash_graceful_reverse_destroy(HashTable *ht) argument
707 zend_hash_apply(HashTable *ht, apply_func_t apply_func TSRMLS_DC) argument
731 zend_hash_apply_with_argument(HashTable *ht, apply_func_arg_t apply_func, void *argument TSRMLS_DC) argument
790 zend_hash_reverse_apply(HashTable *ht, apply_func_t apply_func TSRMLS_DC) argument
913 zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
937 zend_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) argument
963 zend_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) argument
986 zend_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) argument
1012 zend_hash_index_find(const HashTable *ht, ulong h, void **pData) argument
1033 zend_hash_index_exists(const HashTable *ht, ulong h) argument
1053 zend_hash_num_elements(const HashTable *ht) argument
1061 zend_hash_get_pointer(const HashTable *ht, HashPointer *ptr) argument
1073 zend_hash_set_pointer(HashTable *ht, const HashPointer *ptr) argument
1094 zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos) argument
1108 zend_hash_internal_pointer_end_ex(HashTable *ht, HashPosition *pos) argument
1119 zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos) argument
1132 zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos) argument
1147 zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos) argument
1175 zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos) argument
1194 zend_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos) argument
1213 zend_hash_update_current_key_ex(HashTable *ht, int key_type, const char *str_index, uint str_length, ulong num_index, int mode, HashPosition *pos) argument
1421 zend_hash_sort(HashTable *ht, sort_func_t sort_func, compare_func_t compar, int renumber TSRMLS_DC) argument
1570 zend_hash_minmax(const HashTable *ht, compare_func_t compar, int flag, void **pData TSRMLS_DC) argument
1597 zend_hash_next_free_element(const HashTable *ht) argument
1607 zend_hash_display_pListTail(const HashTable *ht) argument
1618 zend_hash_display(const HashTable *ht) argument
[all...]
H A Dzend_hash.h99 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);
100 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);
101 ZEND_API void zend_hash_destroy(HashTable *ht);
102 ZEND_API void zend_hash_clean(HashTable *ht);
103 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) _zend_hash_init((ht), (nSize), (pHashFunction), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
104 #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)
107 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);
108 #define zend_hash_update(ht, arKe
348 zend_symtable_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest) argument
355 zend_symtable_del(HashTable *ht, const char *arKey, uint nKeyLength) argument
362 zend_symtable_find(HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
369 zend_symtable_exists(HashTable *ht, const char *arKey, uint nKeyLength) argument
375 zend_symtable_update_current_key_ex(HashTable *ht, const char *arKey, uint nKeyLength, int mode, HashPosition *pos) argument
[all...]
H A Dzend_operators.c643 HashTable *ht; local
645 ALLOC_HASHTABLE(ht);
646 zend_hash_init(ht, 0, NULL, ZVAL_PTR_DTOR, 0);
650 zend_hash_destroy(ht);
651 FREE_HASHTABLE(ht);
657 zend_hash_copy(ht, obj_ht, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
663 zend_hash_destroy(ht);
664 FREE_HASHTABLE(ht);
670 Z_ARRVAL_P(op) = ht;
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_vm_def.h3954 HashTable *ht = Z_ARRVAL_PP(container); variable
3959 zend_hash_index_del(ht, hval);
3965 zend_hash_index_del(ht, hval);
3981 if (ht == &EG(symbol_table)) {
3984 zend_hash_quick_del(ht, Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval);
3991 zend_hash_index_del(ht, hval);
3997 zend_hash_del(ht, "", sizeof(""));
4463 HashTable *ht; local
4466 ht = Z_ARRVAL_PP(container);
4477 if (zend_hash_index_find(ht, hva
[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_4/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);
244 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index);
246 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index);
324 curnode = php_dom_libxml_hash_iter(objmap->ht, 0);
326 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_4/ext/mysqlnd/
H A Dmysqlnd_bt.c68 if (zend_ascii_hash_find(ht, key, sizeof(key), (void**)&tmp) == SUCCESS) { \
222 HashTable *ht = Z_ARRVAL_PP(frame); local
240 if (zend_ascii_hash_find(ht, "file", sizeof("file"), (void**)&file) == SUCCESS) {
241 if (zend_ascii_hash_find(ht, "line", sizeof("line"), (void**)&tmp) == SUCCESS) {
258 if (zend_ascii_hash_find(ht, "args", sizeof("args"), (void**)&tmp) == SUCCESS) {
291 if (zend_hash_find(ht, key, sizeof(key), (void**)&tmp) == SUCCESS) { \
399 HashTable *ht = Z_ARRVAL_PP(frame); local
417 if (zend_hash_find(ht, "file", sizeof("file"), (void**)&file) == SUCCESS) {
418 if (zend_hash_find(ht, "line", sizeof("line"), (void**)&tmp) == SUCCESS) {
434 if (zend_hash_find(ht, "arg
[all...]
H A Dphp_mysqlnd.c141 HashTable *ht = mysqlnd_reverse_api_get_api_list(TSRMLS_C); local
144 p = ht->pListHead;
/PHP_5_4/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_4/ext/fileinfo/libmagic/
H A Dsoftmagic.c2073 HashTable *ht = Z_ARRVAL_P(subpats); local
2077 zend_hash_internal_pointer_reset_ex(ht, &outer_pos);
2079 if (zend_hash_has_more_elements_ex(ht, &outer_pos) == SUCCESS &&
2080 zend_hash_move_forward_ex(ht, &outer_pos)) {
2087 if (zend_hash_get_current_data_ex(ht, (void**)&ppzval, &outer_pos) != FAILURE) {
/PHP_5_4/main/
H A Dphp_variables.c131 HashTable *ht; local
135 ht = Z_ARRVAL_P(track_vars_array);
136 zend_symtable_del(ht, var, var_len + 1);

Completed in 49 milliseconds

12