/php-src/main/ |
H A D | fastcgi.c | 179 unsigned int idx; member 257 h->buckets->idx = 0; in fcgi_hash_init() 295 h->buckets->idx = 0; in fcgi_hash_clean() 329 fcgi_hash_bucket *p = h->hash_table[idx]; in fcgi_hash_set() 345 b->idx = 0; in fcgi_hash_set() 349 p = h->buckets->data + h->buckets->idx; in fcgi_hash_set() 350 h->buckets->idx++; in fcgi_hash_set() 351 p->next = h->hash_table[idx]; in fcgi_hash_set() 352 h->hash_table[idx] = p; in fcgi_hash_set() 366 fcgi_hash_bucket **p = &h->hash_table[idx]; in fcgi_hash_del() [all …]
|
H A D | php_variables.c | 76 zend_ulong idx; in php_register_known_variable() local 77 ZEND_ASSERT(!ZEND_HANDLE_NUMERIC_STR(var_name, var_name_len, idx)); in php_register_known_variable() 310 zend_ulong idx; in php_register_variable_ex() local 322 } else if (ZEND_HANDLE_NUMERIC_STR(index, index_len, idx)) { in php_register_variable_ex() 323 zend_hash_index_update(symtable1, idx, val); in php_register_variable_ex() 609 zend_ulong idx; in import_environment_variable() local 622 if (ZEND_HANDLE_NUMERIC_STR(env, name_len, idx)) { in import_environment_variable() 623 zend_hash_index_update(ht, idx, &val); in import_environment_variable()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 571 void phpdbg_add_recursive_watch_from_ht(phpdbg_watch_element *element, zend_long idx, zend_string *… argument 582 …G_FMT "]" : "%.*s->" ZEND_LONG_FMT, (int) ZSTR_LEN(element->str) - 2, ZSTR_VAL(element->str), idx); 585 str = zend_long_to_str(idx); // TODO: hack, use proper int handling for name in parent 634 zend_long idx; local 637 ZEND_HASH_FOREACH_KEY_VAL(HT_WATCH_HT(element->watch), idx, str, zv) { 638 phpdbg_add_recursive_watch_from_ht(element, idx, str, zv); 1013 zend_long idx; local 1020 ZEND_HASH_REVERSE_FOREACH_KEY_VAL(HT_WATCH_HT(watch), idx, str, zv) { 1022 str = zend_long_to_str(idx); // TODO: hack, use proper int handling for name in parent 1032 phpdbg_add_recursive_watch_from_ht(element, idx, str, zv);
|
/php-src/Zend/ |
H A D | zend_inheritance.c | 936 uint32_t idx = i; in zend_get_function_declaration() local 940 ++idx; in zend_get_function_declaration() 943 && op->op1.num == (zend_ulong)idx) in zend_get_function_declaration() 2595 #define DISPLAY_ABSTRACT_FN(idx) \ argument 2596 ai.afn[idx] ? ZEND_FN_SCOPE_NAME(ai.afn[idx]) : "", \ 2597 ai.afn[idx] ? "::" : "", \ 2598 ai.afn[idx] ? ZSTR_VAL(ai.afn[idx]->common.function_name) : "", \ 2599 …ai.afn[idx] && ai.afn[idx + 1] ? ", " : (ai.afn[idx] && ai.cnt > MAX_ABSTRACT_INFO_CNT ? ", ..." :… 2816 zend_ulong idx; in load_delayed_classes() local 2817 while (zend_hash_get_current_key_ex(delayed_autoloads, &name, &idx, &pos) in load_delayed_classes()
|
H A D | zend_builtin_functions.c | 458 zend_ulong idx; in copy_constant_array() local 462 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(src), idx, key, val) { in copy_constant_array() 468 new_val = zend_hash_index_add_new(Z_ARRVAL_P(dst), idx, val); in copy_constant_array()
|
H A D | zend_portability.h | 247 # define ZEND_ATTRIBUTE_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first))) argument 249 # define ZEND_ATTRIBUTE_FORMAT(type, idx, first) argument 253 # define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first))) argument 255 # define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) argument
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_private.h | 520 uint32_t idx = IR_SPARSE_SET_SPARSE(set, n); in ir_sparse_set_in() local 522 return idx < set->len && IR_SPARSE_SET_DENSE(set, idx) == n; in ir_sparse_set_in() 527 uint32_t idx; in ir_sparse_set_add() local 530 idx = set->len++; in ir_sparse_set_add() 531 IR_SPARSE_SET_DENSE(set, idx) = n; in ir_sparse_set_add() 532 IR_SPARSE_SET_SPARSE(set, n) = idx; in ir_sparse_set_add() 542 uint32_t idx = IR_SPARSE_SET_SPARSE(set, n); in ir_sparse_set_del() local 544 IR_SPARSE_SET_DENSE(set, idx) = last; in ir_sparse_set_del() 545 IR_SPARSE_SET_SPARSE(set, last) = idx; in ir_sparse_set_del()
|
H A D | ir.c | 696 const char *ir_get_str(const ir_ctx *ctx, ir_ref idx) argument 699 return ir_strtab_str(&ctx->strtab, idx - 1); 702 const char *ir_get_strl(const ir_ctx *ctx, ir_ref idx, size_t *len) argument 705 return ir_strtab_strl(&ctx->strtab, idx - 1, len);
|
H A D | ir.h | 502 const char *ir_strtab_str(const ir_strtab *strtab, ir_ref idx); 503 const char *ir_strtab_strl(const ir_strtab *strtab, ir_ref idx, size_t *len); 675 const char *ir_get_str(const ir_ctx *ctx, ir_ref idx); 676 const char *ir_get_strl(const ir_ctx *ctx, ir_ref idx, size_t *len);
|
/php-src/ext/mbstring/ |
H A D | mbstring.c | 2724 zend_long idx; in php_mb_convert_encoding_recursive() local 2739 ZEND_HASH_FOREACH_KEY_VAL(input, idx, key, entry) { in php_mb_convert_encoding_recursive() 2794 zend_hash_index_add(output, idx, &entry_tmp); in php_mb_convert_encoding_recursive() 5543 zend_long idx; in php_mb_check_encoding_recursive() local 5548 (void)(idx); /* Suppress spurious compiler warning that `idx` is not used */ in php_mb_check_encoding_recursive() 5555 ZEND_HASH_FOREACH_KEY_VAL(vars, idx, key, entry) { in php_mb_check_encoding_recursive()
|
/php-src/ext/dom/lexbor/lexbor/html/tree/ |
H A D | active_formatting.c | 50 while (idx != 0) { in lxb_html_tree_active_formatting_remove_by_node() 51 idx--; in lxb_html_tree_active_formatting_remove_by_node() 56 memmove(list + idx, list + idx + 1, sizeof(void *) * delta); in lxb_html_tree_active_formatting_remove_by_node() 192 while (idx) { in lxb_html_tree_active_formatting_between_last_marker() 193 idx--; in lxb_html_tree_active_formatting_between_last_marker() 199 if (list[idx]->local_name == tag_idx && list[idx]->ns == LXB_NS_HTML) { in lxb_html_tree_active_formatting_between_last_marker() 204 return list[idx]; in lxb_html_tree_active_formatting_between_last_marker() 217 size_t earliest_idx = (idx ? (idx - 1) : 0); in lxb_html_tree_active_formatting_push_with_check_dupl() 220 while (idx) { in lxb_html_tree_active_formatting_push_with_check_dupl() 221 idx--; in lxb_html_tree_active_formatting_push_with_check_dupl() [all …]
|
H A D | active_formatting.h | 73 lxb_html_tree_active_formatting_get(lxb_html_tree_t *tree, size_t idx) in lxb_html_tree_active_formatting_get() argument 75 return (lxb_dom_node_t *) lexbor_array_get(tree->active_formatting, idx); in lxb_html_tree_active_formatting_get() 100 lxb_dom_node_t *node, size_t idx) in lxb_html_tree_active_formatting_insert() argument 102 return lexbor_array_insert(tree->active_formatting, idx, node); in lxb_html_tree_active_formatting_insert() 106 lxb_html_tree_active_formatting_remove(lxb_html_tree_t *tree, size_t idx) in lxb_html_tree_active_formatting_remove() argument 108 lexbor_array_delete(tree->active_formatting, idx, 1); in lxb_html_tree_active_formatting_remove()
|
H A D | open_elements.c | 135 lxb_html_tree_open_elements_pop_until(lxb_html_tree_t *tree, size_t idx, in lxb_html_tree_open_elements_pop_until() argument 138 tree->open_elements->length = idx; in lxb_html_tree_open_elements_pop_until()
|
H A D | open_elements.h | 41 lxb_html_tree_open_elements_pop_until(lxb_html_tree_t *tree, size_t idx, 75 lxb_html_tree_open_elements_get(lxb_html_tree_t *tree, size_t idx) in lxb_html_tree_open_elements_get() argument 77 return (lxb_dom_node_t *) lexbor_array_get(tree->open_elements, idx); in lxb_html_tree_open_elements_get() 94 size_t idx) in lxb_html_tree_open_elements_insert_after() argument 96 return lexbor_array_insert(tree->open_elements, (idx + 1), node); in lxb_html_tree_open_elements_insert_after()
|
H A D | template_insertion.h | 44 lxb_html_tree_template_insertion_get(lxb_html_tree_t *tree, size_t idx) in lxb_html_tree_template_insertion_get() argument 49 lexbor_array_obj_get(tree->template_insertion_modes, idx); in lxb_html_tree_template_insertion_get()
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | foreign_content.c | 32 size_t idx = tree->open_elements->length - 1; in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed() local 34 if (idx > 0 && list[idx]->local_name != token->tag_id) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed() 39 while (idx != 0) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed() 40 if (list[idx]->local_name == token->tag_id) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed() 41 lxb_html_tree_open_elements_pop_until_node(tree, list[idx], true); in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed() 46 idx--; in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed() 48 if (list[idx]->ns == LXB_NS_HTML) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
|
H A D | in_body.c | 496 size_t idx = tree->open_elements->length; in lxb_html_tree_insertion_mode_in_body_li() local 500 while (idx != 0) { in lxb_html_tree_insertion_mode_in_body_li() 501 idx--; in lxb_html_tree_insertion_mode_in_body_li() 503 node = list[idx]; in lxb_html_tree_insertion_mode_in_body_li() 560 size_t idx = tree->open_elements->length; in lxb_html_tree_insertion_mode_in_body_dd_dt() local 564 while (idx != 0) { in lxb_html_tree_insertion_mode_in_body_dd_dt() 565 idx--; in lxb_html_tree_insertion_mode_in_body_dd_dt() 567 node = list[idx]; in lxb_html_tree_insertion_mode_in_body_dd_dt()
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | tree.c | 1016 while (idx != 0) { in lxb_html_tree_reset_insertion_mode_appropriately() 1017 idx--; in lxb_html_tree_reset_insertion_mode_appropriately() 1167 while (idx != 0) { in lxb_html_tree_element_in_scope() 1168 idx--; in lxb_html_tree_element_in_scope() 1193 while (idx != 0) { in lxb_html_tree_element_in_scope_by_node() 1194 idx--; in lxb_html_tree_element_in_scope_by_node() 1218 idx--; in lxb_html_tree_element_in_scope_h123456() 1257 idx--; in lxb_html_tree_element_in_scope_tbody_thead_tfoot() 1293 idx--; in lxb_html_tree_element_in_scope_td_th() 1422 while (idx) { in lxb_html_tree_adoption_agency_algorithm() [all …]
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | array.c | 115 if (idx >= array->length) { in lexbor_array_insert() 116 size_t up_to = (idx - array->length) + 1; in lexbor_array_insert() 118 if (idx >= array->size) { in lexbor_array_insert() 126 array->list[ idx ] = value; in lexbor_array_insert() 138 memmove(&array->list[idx + 1], &array->list[idx], in lexbor_array_insert() 141 array->list[ idx ] = value; in lexbor_array_insert() 150 if (idx >= array->length) { in lexbor_array_set() 151 size_t up_to = (idx - array->length) + 1; in lexbor_array_set() 153 if (idx >= array->size) { in lexbor_array_set() 164 array->list[idx] = value; in lexbor_array_set() [all …]
|
H A D | array.h | 49 lexbor_array_insert(lexbor_array_t *array, size_t idx, void *value); 52 lexbor_array_set(lexbor_array_t *array, size_t idx, void *value); 62 lexbor_array_get(lexbor_array_t *array, size_t idx) in lexbor_array_get() argument 64 if (idx >= array->length) { in lexbor_array_get() 68 return array->list[idx]; in lexbor_array_get() 87 lexbor_array_get_noi(lexbor_array_t *array, size_t idx);
|
H A D | array_obj.c | 189 lexbor_array_obj_get_noi(lexbor_array_obj_t *array, size_t idx) in lexbor_array_obj_get_noi() argument 191 return lexbor_array_obj_get(array, idx); in lexbor_array_obj_get_noi()
|
H A D | array_obj.h | 70 lexbor_array_obj_get(const lexbor_array_obj_t *array, size_t idx) in lexbor_array_obj_get() argument 72 if (idx >= array->length) { in lexbor_array_obj_get() 76 return array->list + (idx * array->struct_size); in lexbor_array_obj_get() 115 lexbor_array_obj_get_noi(lexbor_array_obj_t *array, size_t idx);
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 3542 ir_ref list = IR_UNUSED, idx; in zend_jit_case_start() local 3558 ir_CASE_VAL(switch_ref, idx); in zend_jit_case_start() 9854 ir_ref idx = ir_SUB_U32(last_var, num_args); local 9868 idx = ir_PHI_2(IR_U32, idx, IR_UNUSED); 9872 ir_PHI_SET_OP(idx, 2, idx2); 15345 ir_ref idx; local 15353 ir_CASE_VAL(ref, idx); 15470 ir_ref idx; local 15478 ir_CASE_VAL(ref, idx); 15606 ir_ref idx; local [all …]
|
H A D | zend_jit_trace.c | 1463 idx = 0; in zend_jit_trace_build_tssa() 1470 idx++; in zend_jit_trace_build_tssa() 1478 idx++; in zend_jit_trace_build_tssa() 1583 idx--; in zend_jit_trace_build_tssa() 1714 idx = 0; in zend_jit_trace_build_tssa() 2320 idx++; in zend_jit_trace_build_tssa() 2378 idx++; in zend_jit_trace_build_tssa() 2859 idx = 0; in zend_jit_trace_allocate_registers() 7572 idx = 0; in zend_jit_dump_trace() 7677 idx++; in zend_jit_dump_trace() [all …]
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_driver.c | 177 static inline char php_firebird_classes(char idx) in php_firebird_classes() argument 179 unsigned char uidx = (unsigned char) idx; in php_firebird_classes()
|