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

123

/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_watch.h73 HashTable *ht; member in union:_phpdbg_watchpoint_t::__anon12
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;
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...]
/PHP_TRUNK/Zend/
H A Dzend_gc.c209 HashTable *ht; local
214 ht = NULL;
249 ht = props;
253 ht = &((zend_array*)ref)->ht;
271 if (!ht) return;
272 for (idx = 0; idx < ht->nNumUsed; idx++) {
273 p = ht->arData + idx;
280 if (idx == ht->nNumUsed-1) {
291 HashTable *ht; local
385 HashTable *ht; local
470 HashTable *ht; local
636 HashTable *ht; local
[all...]
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_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_update_or_next_insert(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, int len) argument
347 _zend_ts_hash_str_update(TsHashTable *ht, const char *key, int len, zval *pData ZEND_FILE_LINE_DC) argument
358 _zend_ts_hash_str_add(TsHashTable *ht, const char *key, int 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, int len) argument
122 zend_ts_hash_str_update_ptr(TsHashTable *ht, const char *str, int len, void *pData) argument
131 zend_ts_hash_str_add_ptr(TsHashTable *ht, const char *str, int len, void *pData) argument
[all...]
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);
/PHP_TRUNK/ext/dom/
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);
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);
226 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index);
228 curnode = php_dom_libxml_notation_iter(objmap->ht, iter->index);
302 curnode = php_dom_libxml_hash_iter(objmap->ht, 0);
304 curnode = php_dom_libxml_notation_iter(objmap->ht,
[all...]
/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/ext/standard/
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 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--;
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;
705 HashTable *propers, *ht; local
710 ht = HASH_OF(retval_ptr);
711 ZEND_HASH_FOREACH_STR_KEY_VAL(ht, key, name) {
/PHP_TRUNK/main/
H A Dphp_variables.c113 if (symtable1 == &EG(symbol_table).ht &&
131 HashTable *ht; local
135 ht = Z_ARRVAL_P(track_vars_array);
136 zend_symtable_str_del(ht, var, var_len);
572 zend_hash_str_update(&EG(symbol_table).ht, "argv", sizeof("argv")-1, &arr);
573 zend_hash_str_add(&EG(symbol_table).ht, "argc", sizeof("argc")-1, &argc);
625 int globals_check = (dest == (&EG(symbol_table).ht));
675 zend_hash_update(&EG(symbol_table).ht, name, &PG(http_globals)[TRACK_VARS_GET]);
694 zend_hash_update(&EG(symbol_table).ht, name, &PG(http_globals)[TRACK_VARS_POST]);
709 zend_hash_update(&EG(symbol_table).ht, nam
[all...]
/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:__anon5
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/spl/
H A Dspl_fixedarray.c150 HashTable *ht = zend_std_get_properties(obj TSRMLS_CC); local
160 return ht;
167 HashTable *ht = zend_std_get_properties(obj TSRMLS_CC); local
171 int j = zend_hash_num_elements(ht);
175 zend_hash_index_update(ht, i, &intern->array->elements[i]);
180 zend_hash_index_update(ht, i, &EG(uninitialized_zval));
185 zend_hash_index_del(ht, i);
190 return ht;
/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 uint zend_hash_persist_calc(HashTable *ht, uint (*pPersistElement)(zval *pElement TSRMLS_DC) TSRMLS_DC) argument
58 if (!ht->nTableMask) {
61 if (ht->u.flags & HASH_FLAG_PACKED) {
62 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed);
64 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed + sizeof(uint32_t) * ht->nTableSize);
67 for (idx = 0; idx < ht->nNumUsed; idx++) {
68 p = ht->arData + idx;
/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/opcache/Optimizer/
H A Dzend_optimizer.c554 HashTable *ht = op_array->static_variables; local
556 op_array->static_variables = ht;
/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/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 *pData = zend_hash_get_current_data_ptr(ht);
424 zend_hash_move_forward(ht);
427 if (zend_hash_move_forward(ht) == FAILURE) {
440 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, symbol_table ? &symbol_table->ht : NULL, NULL TSRMLS_CC);
464 static char *cli_completion_generator_func(const char *text, int textlen, int *state, HashTable *ht TSRMLS_DC) /* {{{ */
467 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (voi
[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
241 HashTable *ht = pht; local
[all...]

Completed in 25 milliseconds

123