Searched refs:ht (Results 1 - 25 of 78) sorted by relevance

1234

/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_list.h52 void zend_close_rsrc_list(HashTable *ht);
53 void zend_destroy_rsrc_list(HashTable *ht);
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_types.h202 * | HT_HASH(ht, ht->nTableMask) |
204 * | HT_HASH(ht, -1) |
206 * ht->arData ---> | Bucket[0] |
208 * | Bucket[ht->nTableSize-1] |
239 #define HT_HASH(ht, idx) \
240 HT_HASH_EX((ht)->arData, idx)
248 #define HT_SIZE(ht) \
249 HT_SIZE_EX((ht)->nTableSize, (ht)
270 HashTable *ht; member in struct:_HashTableIterator
[all...]
H A Dzend_hash.h56 ZEND_API void ZEND_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
57 ZEND_API void ZEND_FASTCALL _zend_hash_init_ex(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC);
58 ZEND_API void ZEND_FASTCALL zend_hash_destroy(HashTable *ht);
59 ZEND_API void ZEND_FASTCALL zend_hash_clean(HashTable *ht);
60 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) _zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
61 #define zend_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) _zend_hash_init_ex((ht), (nSize), (pDestructor), (persistent), (bApplyProtection) ZEND_FILE_LINE_CC)
63 ZEND_API void ZEND_FASTCALL zend_hash_real_init(HashTable *ht, zend_bool packed);
64 ZEND_API void ZEND_FASTCALL zend_hash_packed_to_hash(HashTable *ht);
230 zend_hash_iterators_update(HashTable *ht, HashPosition from, HashPosition to) argument
271 zend_hash_find_ind(const HashTable *ht, zend_string *key) argument
281 zend_hash_exists_ind(const HashTable *ht, zend_string *key) argument
291 zend_hash_str_find_ind(const HashTable *ht, const char *str, size_t len) argument
301 zend_symtable_update(HashTable *ht, zend_string *key, zval *pData) argument
313 zend_symtable_update_ind(HashTable *ht, zend_string *key, zval *pData) argument
325 zend_symtable_del(HashTable *ht, zend_string *key) argument
337 zend_symtable_del_ind(HashTable *ht, zend_string *key) argument
349 zend_symtable_find(const HashTable *ht, zend_string *key) argument
361 zend_symtable_find_ind(const HashTable *ht, zend_string *key) argument
373 zend_symtable_exists(HashTable *ht, zend_string *key) argument
385 zend_symtable_str_update(HashTable *ht, const char *str, size_t len, zval *pData) argument
397 zend_symtable_str_update_ind(HashTable *ht, const char *str, size_t len, zval *pData) argument
409 zend_symtable_str_del(HashTable *ht, const char *str, size_t len) argument
421 zend_symtable_str_del_ind(HashTable *ht, const char *str, size_t len) argument
433 zend_symtable_str_find(HashTable *ht, const char *str, size_t len) argument
445 zend_symtable_str_exists(HashTable *ht, const char *str, size_t len) argument
456 zend_hash_add_ptr(HashTable *ht, zend_string *key, void *pData) argument
470 zend_hash_add_new_ptr(HashTable *ht, zend_string *key, void *pData) argument
484 zend_hash_str_add_ptr(HashTable *ht, const char *str, size_t len, void *pData) argument
498 zend_hash_str_add_new_ptr(HashTable *ht, const char *str, size_t len, void *pData) argument
512 zend_hash_update_ptr(HashTable *ht, zend_string *key, void *pData) argument
526 zend_hash_str_update_ptr(HashTable *ht, const char *str, size_t len, void *pData) argument
540 zend_hash_add_mem(HashTable *ht, zend_string *key, void *pData, size_t size) argument
553 zend_hash_str_add_mem(HashTable *ht, const char *str, size_t len, void *pData, size_t size) argument
566 zend_hash_update_mem(HashTable *ht, zend_string *key, void *pData, size_t size) argument
575 zend_hash_str_update_mem(HashTable *ht, const char *str, size_t len, void *pData, size_t size) argument
584 zend_hash_index_add_ptr(HashTable *ht, zend_ulong h, void *pData) argument
593 zend_hash_index_add_new_ptr(HashTable *ht, zend_ulong h, void *pData) argument
602 zend_hash_index_update_ptr(HashTable *ht, zend_ulong h, void *pData) argument
616 zend_hash_index_add_mem(HashTable *ht, zend_ulong h, void *pData, size_t size) argument
629 zend_hash_next_index_insert_ptr(HashTable *ht, void *pData) argument
643 zend_hash_index_update_mem(HashTable *ht, zend_ulong h, void *pData, size_t size) argument
652 zend_hash_next_index_insert_mem(HashTable *ht, void *pData, size_t size) argument
665 zend_hash_find_ptr(const HashTable *ht, zend_string *key) argument
678 zend_hash_str_find_ptr(const HashTable *ht, const char *str, size_t len) argument
691 zend_hash_index_find_ptr(const HashTable *ht, zend_ulong h) argument
704 zend_symtable_str_find_ptr(HashTable *ht, const char *str, size_t len) argument
715 zend_hash_get_current_data_ptr_ex(HashTable *ht, HashPosition *pos) argument
891 _zend_hash_append(HashTable *ht, zend_string *key, zval *zv) argument
913 _zend_hash_append_ptr(HashTable *ht, zend_string *key, void *ptr) argument
935 _zend_hash_append_ind(HashTable *ht, zend_string *key, zval *ptr) argument
[all...]
H A Dzend_hash.c42 static void _zend_is_inconsistent(const HashTable *ht, const char *file, int line) argument
44 if ((ht->u.flags & HASH_MASK_CONSISTENCY) == HT_OK) {
47 switch ((ht->u.flags & HASH_MASK_CONSISTENCY)) {
49 zend_output_debug_string(1, "%s(%d) : ht=%p is being destroyed", file, line, ht);
52 zend_output_debug_string(1, "%s(%d) : ht=%p is already destroyed", file, line, ht);
55 zend_output_debug_string(1, "%s(%d) : ht=%p is being cleaned", file, line, ht);
58 zend_output_debug_string(1, "%s(%d) : ht
127 zend_hash_real_init_ex(HashTable *ht, int packed) argument
156 zend_hash_check_init(HashTable *ht, int packed) argument
170 _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC) argument
185 zend_hash_packed_grow(HashTable *ht) argument
197 zend_hash_real_init(HashTable *ht, zend_bool packed) argument
205 zend_hash_packed_to_hash(HashTable *ht) argument
222 zend_hash_to_packed(HashTable *ht) argument
239 _zend_hash_init_ex(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC) argument
247 zend_hash_extend(HashTable *ht, uint32_t nSize, zend_bool packed) argument
285 zend_hash_set_apply_protection(HashTable *ht, zend_bool bApplyProtection) argument
294 zend_hash_iterator_add(HashTable *ht, HashPosition pos) argument
331 zend_hash_iterator_pos(uint32_t idx, HashTable *ht) argument
370 _zend_hash_iterators_remove(HashTable *ht) argument
390 zend_hash_iterators_remove(HashTable *ht) argument
397 zend_hash_iterators_lower_pos(HashTable *ht, HashPosition start) argument
414 _zend_hash_iterators_update(HashTable *ht, HashPosition from, HashPosition to) argument
427 zend_hash_find_bucket(const HashTable *ht, zend_string *key) argument
453 zend_hash_str_find_bucket(const HashTable *ht, const char *str, size_t len, zend_ulong h) argument
476 zend_hash_index_find_bucket(const HashTable *ht, zend_ulong h) argument
496 _zend_hash_add_or_update_i(HashTable *ht, zend_string *key, zval *pData, uint32_t flag ZEND_FILE_LINE_DC) argument
562 _zend_hash_add_or_update(HashTable *ht, zend_string *key, zval *pData, uint32_t flag ZEND_FILE_LINE_DC) argument
567 _zend_hash_add(HashTable *ht, zend_string *key, zval *pData ZEND_FILE_LINE_DC) argument
572 _zend_hash_update(HashTable *ht, zend_string *key, zval *pData ZEND_FILE_LINE_DC) argument
577 _zend_hash_update_ind(HashTable *ht, zend_string *key, zval *pData ZEND_FILE_LINE_DC) argument
582 _zend_hash_add_new(HashTable *ht, zend_string *key, zval *pData ZEND_FILE_LINE_DC) argument
587 _zend_hash_str_add_or_update(HashTable *ht, const char *str, size_t len, zval *pData, uint32_t flag ZEND_FILE_LINE_DC) argument
595 _zend_hash_str_update(HashTable *ht, const char *str, size_t len, zval *pData ZEND_FILE_LINE_DC) argument
603 _zend_hash_str_update_ind(HashTable *ht, const char *str, size_t len, zval *pData ZEND_FILE_LINE_DC) argument
611 _zend_hash_str_add(HashTable *ht, const char *str, size_t len, zval *pData ZEND_FILE_LINE_DC) argument
619 _zend_hash_str_add_new(HashTable *ht, const char *str, size_t len, zval *pData ZEND_FILE_LINE_DC) argument
627 zend_hash_index_add_empty_element(HashTable *ht, zend_ulong h) argument
635 zend_hash_add_empty_element(HashTable *ht, zend_string *key) argument
643 zend_hash_str_add_empty_element(HashTable *ht, const char *str, size_t len) argument
651 _zend_hash_index_add_or_update_i(HashTable *ht, zend_ulong h, zval *pData, uint32_t flag ZEND_FILE_LINE_DC) argument
773 _zend_hash_index_add_or_update(HashTable *ht, zend_ulong h, zval *pData, uint32_t flag ZEND_FILE_LINE_DC) argument
778 _zend_hash_index_add(HashTable *ht, zend_ulong h, zval *pData ZEND_FILE_LINE_DC) argument
783 _zend_hash_index_add_new(HashTable *ht, zend_ulong h, zval *pData ZEND_FILE_LINE_DC) argument
788 _zend_hash_index_update(HashTable *ht, zend_ulong h, zval *pData ZEND_FILE_LINE_DC) argument
793 _zend_hash_next_index_insert(HashTable *ht, zval *pData ZEND_FILE_LINE_DC) argument
798 _zend_hash_next_index_insert_new(HashTable *ht, zval *pData ZEND_FILE_LINE_DC) argument
803 zend_hash_do_resize(HashTable *ht) argument
832 zend_hash_rehash(HashTable *ht) argument
916 _zend_hash_del_el_ex(HashTable *ht, uint32_t idx, Bucket *p, Bucket *prev) argument
964 _zend_hash_del_el(HashTable *ht, uint32_t idx, Bucket *p) argument
984 zend_hash_del_bucket(HashTable *ht, Bucket *p) argument
991 zend_hash_del(HashTable *ht, zend_string *key) argument
1022 zend_hash_del_ind(HashTable *ht, zend_string *key) argument
1066 zend_hash_str_del_ind(HashTable *ht, const char *str, size_t len) argument
1109 zend_hash_str_del(HashTable *ht, const char *str, size_t len) argument
1139 zend_hash_index_del(HashTable *ht, zend_ulong h) argument
1174 zend_hash_destroy(HashTable *ht) argument
1236 zend_array_destroy(HashTable *ht) argument
1289 zend_hash_clean(HashTable *ht) argument
1358 zend_symtable_clean(HashTable *ht) argument
1393 zend_hash_graceful_destroy(HashTable *ht) argument
1413 zend_hash_graceful_reverse_destroy(HashTable *ht) argument
1446 zend_hash_apply(HashTable *ht, apply_func_t apply_func) argument
1472 zend_hash_apply_with_argument(HashTable *ht, apply_func_arg_t apply_func, void *argument) argument
1498 zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int num_args, ...) argument
1534 zend_hash_reverse_apply(HashTable *ht, apply_func_t apply_func) argument
1880 zend_hash_find(const HashTable *ht, zend_string *key) argument
1890 zend_hash_str_find(const HashTable *ht, const char *str, size_t len) argument
1902 zend_hash_exists(const HashTable *ht, zend_string *key) argument
1912 zend_hash_str_exists(const HashTable *ht, const char *str, size_t len) argument
1924 zend_hash_index_find(const HashTable *ht, zend_ulong h) argument
1945 zend_hash_index_exists(const HashTable *ht, zend_ulong h) argument
1965 zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos) argument
1985 zend_hash_internal_pointer_end_ex(HashTable *ht, HashPosition *pos) argument
2004 zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos) argument
2028 zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos) argument
2052 zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos) argument
2071 zend_hash_get_current_key_zval_ex(const HashTable *ht, zval *key, HashPosition *pos) argument
2089 zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos) argument
2107 zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos) argument
2164 zend_hash_sort_ex(HashTable *ht, sort_func_t sort, compare_func_t compar, zend_bool renumber) argument
2329 zend_hash_minmax(const HashTable *ht, compare_func_t compar, uint32_t flag) argument
[all...]
/PHP_TRUNK/ext/dom/
H A Dnamednodemap.c98 if (objmap->ht) {
99 count = xmlHashSize(objmap->ht);
150 if (objmap->ht) {
152 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, (xmlChar *) named);
154 notep = (xmlNotation *)xmlHashLookup(objmap->ht, (xmlChar *) named);
224 if (objmap->ht) {
226 itemnode = php_dom_libxml_hash_iter(objmap->ht, index);
228 itemnode = php_dom_libxml_notation_iter(objmap->ht, index);
283 if (objmap->ht) {
285 itemnode = (xmlNodePtr)xmlHashLookup(objmap->ht, (xmlCha
[all...]
H A Dnodelist.c63 if (objmap->ht) {
64 count = xmlHashSize(objmap->ht);
126 if (objmap->ht) {
128 itemnode = php_dom_libxml_hash_iter(objmap->ht, index);
130 itemnode = php_dom_libxml_notation_iter(objmap->ht, index);
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 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/standard/
H A Dphp_http.h27 PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
32 #define php_url_encode_hash(ht, formstr) php_url_encode_hash_ex((ht), (formstr), NULL, 0, NULL, 0, NULL, 0, NULL)
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 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); \
H A Dvar_unserializer.re333 static zend_always_inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops)
353 if (UNEXPECTED((old_data = zend_hash_index_find(ht, idx)) != NULL)) {
356 data = zend_hash_index_update(ht, idx, &d);
358 data = zend_hash_index_add_new(ht, idx, &d);
364 if (UNEXPECTED((old_data = zend_hash_find(ht, Z_STR(key))) != NULL)) {
367 data = zend_hash_update(ht, Z_STR(key), &d);
369 data = zend_hash_add_new(ht, Z_STR(key), &d);
378 if ((old_data = zend_hash_find(ht, Z_STR(key))) != NULL) {
383 data = zend_hash_update_ind(ht, Z_STR(key), &d);
385 data = zend_hash_add_new(ht, Z_ST
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_util_funcs.h33 void zend_accel_free_user_functions(HashTable *ht);
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)) {
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) {
68 ADD_SIZE(hash_size * sizeof(uint32_t) + ht->nNumUsed * sizeof(Bucket));
70 ADD_SIZE(HT_USED_SIZE(ht));
73 for (idx = 0; idx < ht
[all...]
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->u.flags & HASH_FLAG_PACKED) {
83 void *data = HT_GET_DATA_ADDR(ht);
84 zend_accel_store(data, HT_USED_SIZE(ht));
85 HT_SET_DATA_ADDR(ht, data);
86 } else if (ht->nNumUsed < -(int32_t)ht->nTableMask / 2) {
88 void *old_data = HT_GET_DATA_ADDR(ht);
143 zend_hash_persist_immutable(HashTable *ht) argument
[all...]
H A Dzend_accelerator_util_funcs.c111 void zend_accel_free_user_functions(HashTable *ht) argument
113 dtor_func_t orig_dtor = ht->pDestructor;
115 ht->pDestructor = NULL;
116 zend_hash_apply(ht, (apply_func_t) is_not_internal_function);
117 ht->pDestructor = orig_dtor;
229 static void zend_hash_clone_constants(HashTable *ht, HashTable *source) argument
234 ht->nTableSize = source->nTableSize;
235 ht->nTableMask = source->nTableMask;
236 ht->nNumUsed = 0;
237 ht
273 zend_hash_clone_methods(HashTable *ht, HashTable *source, zend_class_entry *old_ce, zend_class_entry *ce) argument
331 zend_hash_clone_prop_info(HashTable *ht, HashTable *source, zend_class_entry *old_ce) argument
[all...]
/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/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/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/readline/
H A Dreadline_cli.c401 static char *cli_completion_generator_ht(const char *text, int textlen, int *state, HashTable *ht, void **pData) /* {{{ */ argument
407 zend_hash_internal_pointer_reset(ht);
410 while(zend_hash_has_more_elements(ht) == SUCCESS) {
411 zend_hash_get_current_key(ht, &name, &number);
414 *pData = zend_hash_get_current_data_ptr(ht);
416 zend_hash_move_forward(ht);
419 if (zend_hash_move_forward(ht) == FAILURE) {
456 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht) /* {{{ */ argument
459 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func);
480 static char *cli_completion_generator_define(const char *text, int textlen, int *state, HashTable *ht) /* {{{ */ argument
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_array.c112 static zend_never_inline void spl_array_create_ht_iter(HashTable *ht, spl_array_object* intern) /* {{{ */ argument
114 intern->ht_iter = zend_hash_iterator_add(ht, ht->nInternalPointer);
115 zend_hash_internal_pointer_reset_ex(ht, &EG(ht_iterators)[intern->ht_iter].pos);
116 spl_array_skip_protected(intern, ht);
120 static zend_always_inline uint32_t *spl_array_get_pos_ptr(HashTable *ht, spl_array_object* intern) /* {{{ */ argument
123 spl_array_create_ht_iter(ht, intern);
268 HashTable *ht = spl_array_get_hash_table(intern, 0); local
274 if ((type == BP_VAR_W || type == BP_VAR_RW) && (ht->u.v.nApplyCount > 0)) {
286 retval = zend_symtable_find(ht, offset_ke
415 HashTable *ht; local
500 HashTable *ht; local
611 HashTable *ht = spl_array_get_hash_table(intern, 0); local
675 spl_array_object_verify_pos_ex(spl_array_object *object, HashTable *ht, const char *msg_prefix) argument
686 spl_array_object_verify_pos(spl_array_object *object, HashTable *ht) argument
[all...]

Completed in 22 milliseconds

1234