/php-src/ext/curl/ |
H A D | interface.c | 560 static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx) in curl_write() argument 562 php_curl *ch = (php_curl *) ctx; in curl_write() 568 fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx); in curl_write() 610 static int curl_fnmatch(void *ctx, const char *pattern, const char *string) in curl_fnmatch() argument 612 php_curl *ch = (php_curl *) ctx; in curl_fnmatch() 759 static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) in curl_read() argument 761 php_curl *ch = (php_curl *)ctx; in curl_read() 811 static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx) in curl_write_header() argument 813 php_curl *ch = (php_curl *) ctx; in curl_write_header() 861 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ in curl_debug() argument [all …]
|
/php-src/ext/libxml/ |
H A D | libxml.c | 613 static void php_libxml_ctx_error_level(int level, void *ctx, const char *msg, int line) in php_libxml_ctx_error_level() argument 617 parser = (xmlParserCtxtPtr) ctx; in php_libxml_ctx_error_level() 667 php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s), line); in php_libxml_internal_error_handler_ex() 681 xmlParserCtxtPtr parser = (xmlParserCtxtPtr) ctx; in php_libxml_error_handler_va() 687 php_libxml_internal_error_handler_ex(error_type, ctx, msg, ap, line, column); in php_libxml_error_handler_va() 841 PHP_LIBXML_API void php_libxml_ctx_error(void *ctx, const char *msg, ...) in php_libxml_ctx_error() argument 845 php_libxml_error_handler_va(PHP_LIBXML_CTX_ERROR, ctx, msg, args); in php_libxml_ctx_error() 849 PHP_LIBXML_API void php_libxml_ctx_warning(void *ctx, const char *msg, ...) in php_libxml_ctx_warning() argument 853 php_libxml_error_handler_va(PHP_LIBXML_CTX_WARNING, ctx, msg, args); in php_libxml_ctx_warning() 866 PHP_LIBXML_API void php_libxml_error_handler(void *ctx, const char *msg, ...) in php_libxml_error_handler() argument [all …]
|
/php-src/Zend/ |
H A D | zend_compile.c | 10497 const_expr_context *ctx = (const_expr_context *) context; in zend_compile_const_expr() local 10521 if (!ctx->allow_dynamic) { in zend_compile_const_expr()
|
/php-src/ext/openssl/ |
H A D | openssl.c | 830 X509V3_CTX ctx; in php_openssl_config_check_syntax() local 3769 if (!ctx) { in php_openssl_generate_private_key() 3821 if (!ctx) { in php_openssl_generate_private_key() 4136 BN_CTX *ctx; in php_openssl_dh_pub_from_priv() local 4614 if (EVP_PKEY_check(ctx) || EVP_PKEY_public_check_quick(ctx)) { in php_openssl_pkey_init_ec() 5218 if (!ctx) { in php_openssl_pkey_derive() 6736 if (!ctx || EVP_PKEY_sign_init(ctx) <= 0 || in PHP_FUNCTION() 6785 if (!ctx || EVP_PKEY_decrypt_init(ctx) <= 0 || in PHP_FUNCTION() 6835 if (!ctx || EVP_PKEY_encrypt_init(ctx) <= 0 || in PHP_FUNCTION() 6884 if (!ctx || EVP_PKEY_verify_recover_init(ctx) <= 0 || in PHP_FUNCTION() [all …]
|
/php-src/ext/dom/ |
H A D | html5_parser.c | 290 memset(ctx, 0, sizeof(*ctx)); in lexbor_libxml2_bridge_parse_context_init() 294 lexbor_libxml2_bridge_parse_context *ctx, in lexbor_libxml2_bridge_parse_set_error_callbacks() argument 299 ctx->tokenizer_error_reporter = tokenizer_error_reporter; in lexbor_libxml2_bridge_parse_set_error_callbacks() 300 ctx->tree_error_reporter = tree_error_reporter; in lexbor_libxml2_bridge_parse_set_error_callbacks() 331 const lexbor_libxml2_bridge_parse_context *ctx, in lexbor_libxml2_bridge_report_errors() argument 347 if (ctx->tokenizer_error_reporter) { in lexbor_libxml2_bridge_report_errors() 348 ctx->tokenizer_error_reporter( in lexbor_libxml2_bridge_report_errors() 349 ctx->application_data, in lexbor_libxml2_bridge_report_errors() 364 if (ctx->tree_error_reporter) { in lexbor_libxml2_bridge_report_errors() 365 ctx->tree_error_reporter( in lexbor_libxml2_bridge_report_errors() [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_x86.dasc | 2835 IR_ASSERT(ref >= 0 && ctx->vregs[ref] && ctx->live_intervals[ctx->vregs[ref]]); 2867 return ir_vreg_spill_slot(ctx, ctx->vregs[ref]); 2890 IR_ASSERT(ctx->vregs[ref] && ctx->live_intervals[ctx->vregs[ref]]); 2891 ival = ctx->live_intervals[ctx->vregs[ref]]; 3524 IR_ASSERT(ctx->stack_frame_size + ctx->call_stack_size <= ctx->fixed_stack_red_zone); 3680 IR_ASSERT(ctx->stack_frame_size + ctx->call_stack_size <= ctx->fixed_stack_red_zone); 7694 && ctx->live_intervals[ctx->vregs[def]] 9880 ctx->ret_slot = ir_allocate_spill_slot(ctx, ctx->ret_type, &data->ra_data); 9935 && ctx->live_intervals[ctx->vregs[i]] 10038 ctx->regs[i][j] = ctx->regs[i][1]; [all …]
|
H A D | ir_sccp.c | 538 ir_use_list_add(ctx, ctx->fold_insn.op1, ref); in ir_sccp_fold2() 546 ir_use_list_add(ctx, ctx->fold_insn.op2, ref); in ir_sccp_fold2() 554 ir_use_list_add(ctx, ctx->fold_insn.op3, ref); in ir_sccp_fold2() 574 op1 = ir_const(ctx, ctx->fold_insn.val, ctx->fold_insn.type); in ir_sccp_fold2() 590 next = ctx->use_edges[ctx->use_lists[dst].refs]; in ir_sccp_remove_if() 1087 ctx->use_lists = ir_mem_realloc(ctx->use_lists, ctx->insns_count * sizeof(ir_use_list)); in ir_ext_ref() 1148 use = ctx->use_edges[ctx->use_lists[ref].refs + n]; in ir_try_promote_ext() 1163 ctx->ir_base[use].op1 = ir_ext_const(ctx, &ctx->ir_base[use_insn->op1], op, type); in ir_try_promote_ext() 1172 ctx->ir_base[use].op2 = ir_ext_const(ctx, &ctx->ir_base[use_insn->op2], op, type); in ir_try_promote_ext() 1186 ctx->ir_base[ref].op2 = ir_ext_const(ctx, &ctx->ir_base[phi_insn->op2], op, type); in ir_try_promote_ext() [all …]
|
H A D | ir_private.h | 883 IR_ALWAYS_INLINE bool ir_ref_is_true(ir_ctx *ctx, ir_ref ref) in ir_ref_is_true() argument 891 return ir_const_is_true(&ctx->ir_base[ref]); in ir_ref_is_true() 1008 ir_ref var = ir_hashtab_find(ctx->binding, ref); in ir_binding_find() 1032 ir_use_list *__use_list = &ctx->use_lists[_ref]; \ 1101 uint32_t ir_next_block(const ir_ctx *ctx, uint32_t b); 1317 int8_t *regs = ctx->regs[ref]; in ir_set_alocated_reg() 1328 int8_t *regs = ctx->regs[ref]; in ir_get_alocated_reg() 1358 void ir_fix_stack_frame(ir_ctx *ctx); 1361 ir_type ir_get_return_type(ir_ctx *ctx); 1362 bool ir_is_fastcall(const ir_ctx *ctx, const ir_insn *insn); [all …]
|
H A D | ir_cfg.c | 81 ref = ctx->ir_base[1].op1; in ir_build_cfg() 265 ctx->cfg_edges = edges; in ir_build_cfg() 266 ctx->cfg_map = _blocks; in ir_build_cfg() 1261 schedule_end = ctx->cfg_schedule + ctx->cfg_blocks_count; in ir_schedule_blocks_bottom_up() 1531 if (ctx->ir_base[ctx->cfg_blocks[prev].end].op == IR_IF) { in ir_schedule_blocks_bottom_up() 1532 if (ctx->ir_base[ctx->cfg_blocks[prev].start].op == IR_LOOP_BEGIN in ir_schedule_blocks_bottom_up() 1568 if ((ctx->flags & IR_MERGE_EMPTY_ENTRIES) && ctx->entries_count) { in ir_schedule_blocks_bottom_up() 1570 b = ctx->entries[i]; in ir_schedule_blocks_bottom_up() 1642 ctx->cfg_schedule[ctx->cfg_blocks_count + 1] = 0; in ir_schedule_blocks_bottom_up() 1793 ir_block *bb = &ctx->cfg_blocks[ctx->cfg_map[ref]]; in ir_schedule_blocks() [all …]
|
H A D | ir_fold.h | 2449 && !(ctx->ir_base[op1_insn->op2].val.u64 in IR_FOLD() 2516 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2531 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2547 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2553 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2573 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2579 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2597 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2617 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() 2632 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD() [all …]
|
H A D | ir_gcm.c | 87 if (ctx->ir_base[ref].op >= IR_EQ && ctx->ir_base[ref].op <= IR_UGT) { in ir_gcm_select_best_block() 102 && !(ctx->binding && ir_binding_find(ctx, ref))) { in ir_gcm_select_best_block() 118 && !(ctx->binding && ir_binding_find(ctx, ref))) { in ir_gcm_select_best_block() 247 _push_predecessors(ctx, &ctx->cfg_blocks[i], data); in ir_split_partially_dead_node() 387 ctx->use_lists = ir_mem_realloc(ctx->use_lists, ctx->insns_count * sizeof(ir_use_list)); in ir_split_partially_dead_node() 388 ctx->cfg_map = ir_mem_realloc(ctx->cfg_map, ctx->insns_count * sizeof(uint32_t)); in ir_split_partially_dead_node() 431 ir_check(ctx); in ir_split_partially_dead_node() 452 use = ctx->use_edges[ctx->use_lists[ref].refs + n]; in ir_gcm_schedule_late() 655 ctx->data = NULL; in ir_gcm() 1215 ir_free(ctx); in ir_schedule() [all …]
|
H A D | ir_aarch64.dasc | 1146 return ir_vreg_spill_slot(ctx, ctx->vregs[ref]); 1167 IR_ASSERT(ctx->vregs[ref] && ctx->live_intervals[ctx->vregs[ref]]); 1168 ival = ctx->live_intervals[ctx->vregs[ref]]; 1590 IR_ASSERT(ctx->stack_frame_size + ctx->call_stack_size <= ctx->fixed_stack_red_zone); 1781 IR_ASSERT(ctx->stack_frame_size + ctx->call_stack_size <= ctx->fixed_stack_red_zone); 3978 && ctx->live_intervals[ctx->vregs[def]] 5579 && ctx->live_intervals[ctx->vregs[i]] 5682 ctx->regs[i][j] = ctx->regs[i][1]; 6396 IR_ASSERT(ctx && ctx->code_buffer); 6401 veneer = ctx->get_veneer(ctx, addr); [all …]
|
H A D | ir.c | 361 …memcpy(buf, ctx->ir_base - ctx->consts_count, (ctx->consts_count + ctx->insns_count) * sizeof(ir_i… 363 ctx->insns_limit = ctx->insns_count; 2363 ctx->control = ir_emit3(ctx, IR_UNREACHABLE, ctx->control, IR_UNUSED, ctx->ir_base[1].op1); 2519 ctx->control = ir_emit3(ctx, IR_RETURN, ctx->control, val, ctx->ir_base[1].op1); 2527 ctx->control = ir_emit3(ctx, IR_IJMP, ctx->control, addr, ctx->ir_base[1].op1); 2670 ctx->control = ir_emit2(ctx, IR_AFREE, ctx->control, size); 2719 ctx->control = ir_emit3(ctx, IR_VSTORE, ctx->control, var, val); 2737 ctx->control = ir_emit3(ctx, IR_RSTORE, ctx->control, val, reg); 2814 ctx->control = ir_emit3(ctx, IR_STORE, ctx->control, addr, val); 2820 ctx->control = ir_emit2(ctx, IR_VA_START, ctx->control, list); [all …]
|
H A D | ir_ra.c | 1743 ival = ctx->live_intervals[ctx->vregs[i]]; in ir_swap_operands() 1817 && ctx->vregs[insn->op1] != ctx->vregs[i] in ir_try_swap_operands() 1818 && !ir_vregs_overlap(ctx, ctx->vregs[insn->op1], ctx->vregs[i]) in ir_try_swap_operands() 1819 && !ir_hint_conflict(ctx, i, ctx->vregs[insn->op1], ctx->vregs[i])) { in ir_try_swap_operands() 1822 if (ctx->vregs[insn->op2] && ctx->vregs[insn->op2] != ctx->vregs[i]) { in ir_try_swap_operands() 1837 if (!ir_vregs_overlap(ctx, ctx->vregs[insn->op2], ctx->vregs[i]) in ir_try_swap_operands() 1838 && !ir_hint_conflict(ctx, i, ctx->vregs[insn->op2], ctx->vregs[i])) { in ir_try_swap_operands() 2006 if (ir_vregs_inside(ctx, ctx->vregs[insn->op1], ctx->vregs[i])) { in ir_coalesce() 2014 ir_vregs_coalesce(ctx, ctx->vregs[i], ctx->vregs[insn->op1], i, insn->op1); in ir_coalesce() 2049 ctx->vregs[j] = xlat[ctx->vregs[j]]; in ir_coalesce() [all …]
|
H A D | ir.h | 757 int ir_sccp(ir_ctx *ctx); 760 int ir_gcm(ir_ctx *ctx); 918 if (!ir_build_cfg(ctx) in ir_jit_compile() 919 || !ir_match(ctx) in ir_jit_compile() 936 && !ir_sccp(ctx)) { in ir_jit_compile() 940 if (!ir_build_cfg(ctx) in ir_jit_compile() 943 || !ir_gcm(ctx) in ir_jit_compile() 944 || !ir_schedule(ctx) in ir_jit_compile() 945 || !ir_match(ctx) in ir_jit_compile() 948 || !ir_coalesce(ctx) in ir_jit_compile() [all …]
|
H A D | ir_check.c | 73 uint32_t b1 = ctx->cfg_map[def]; in ir_check_domination() 74 uint32_t b2 = ctx->cfg_map[use]; in ir_check_domination() 89 bool ir_check(const ir_ctx *ctx) in ir_check() argument 97 for (i = IR_UNUSED + 1, insn = ctx->ir_base + i; i < ctx->insns_count;) { in ir_check() 194 && ctx->cfg_map in ir_check() 248 if (ctx->use_lists in ir_check() 283 if (ctx->ret_type != (insn->op2 ? ctx->ir_base[insn->op2].type : IR_VOID)) { in ir_check() 296 if (ctx->use_lists) { in ir_check() 327 if (ctx->ir_base[ctx->use_edges[use_list->refs]].op == IR_ENTRY) { in ir_check() 355 if (ctx->ir_base[ctx->use_edges[use_list->refs]].op == IR_ENTRY) { in ir_check() [all …]
|
/php-src/ext/dom/lexbor/lexbor/selectors/ |
H A D | selectors.h | 67 lxb_css_selector_specificity_t spec, void *ctx); 89 void *ctx; member 184 lxb_selectors_cb_f cb, void *ctx); 215 lxb_selectors_cb_f cb, void *ctx); 224 lxb_selectors_cb_f cb, void *ctx));
|
H A D | selectors.c | 261 lxb_selectors_cb_f cb, void *ctx) in lxb_selectors_find() argument 277 nested.ctx = ctx; in lxb_selectors_find() 288 lxb_selectors_cb_f cb, void *ctx) in lxb_selectors_match_node() argument 309 nested.ctx = ctx; in lxb_selectors_match_node() 631 current->ctx); in lxb_selectors_state_find_check() 707 current->ctx = ¤t->found; in lxb_selectors_state_pseudo_class_function() 721 current->ctx = ¤t->found; in lxb_selectors_state_pseudo_class_function() 733 current->ctx = ¤t->found; in lxb_selectors_state_pseudo_class_function() 748 current->ctx = ¤t->found; in lxb_selectors_state_pseudo_class_function() 1903 *((bool *) ctx) = true; in lxb_selectors_cb_ok() [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | tree.c | 40 lxb_html_token_t *token, void *ctx); 201 lxb_html_token_t *token, void *ctx) in lxb_html_tree_token_callback() argument 205 status = lxb_html_tree_insertion_mode(ctx, token); in lxb_html_tree_token_callback() 551 lxb_dom_attr_t *attr, void *ctx) in lxb_html_tree_adjust_mathml_attributes() argument 577 lxb_dom_attr_t *attr, void *ctx) in lxb_html_tree_adjust_svg_attributes() argument 614 lxb_dom_attr_t *attr, void *ctx) in lxb_html_tree_adjust_foreign_attributes() argument 1720 status = lxb_html_tree_adjust_mathml_attributes(tree, attr, ctx); in lxb_html_tree_adjust_attributes_mathml() 1725 return lxb_html_tree_adjust_foreign_attributes(tree, attr, ctx); in lxb_html_tree_adjust_attributes_mathml() 1730 lxb_dom_attr_t *attr, void *ctx) in lxb_html_tree_adjust_attributes_svg() argument 1734 status = lxb_html_tree_adjust_svg_attributes(tree, attr, ctx); in lxb_html_tree_adjust_attributes_svg() [all …]
|
H A D | tree.h | 31 lxb_dom_attr_t *attr, void *ctx); 137 lxb_dom_attr_t *attr, void *ctx); 141 lxb_dom_attr_t *attr, void *ctx); 145 lxb_dom_attr_t *attr, void *ctx); 221 lxb_dom_attr_t *attr, void *ctx); 225 lxb_dom_attr_t *attr, void *ctx);
|
H A D | tokenizer.c | 35 lxb_html_token_t *token, void *ctx); 383 lxb_html_token_t *token, void *ctx) in lxb_html_tokenizer_token_done() argument 473 void *ctx) in lxb_html_tokenizer_callback_token_done_set_noi() argument 475 lxb_html_tokenizer_callback_token_done_set(tkz, call_func, ctx); in lxb_html_tokenizer_callback_token_done_set_noi()
|
H A D | tokenizer.h | 31 lxb_html_token_t *token, void *ctx); 209 void *ctx) in lxb_html_tokenizer_callback_token_done_set() argument 212 tkz->callback_token_ctx = ctx; in lxb_html_tokenizer_callback_token_done_set() 314 void *ctx);
|
H A D | serialize.h | 35 (*lxb_html_serialize_cb_f)(const lxb_char_t *data, size_t len, void *ctx); 40 lxb_html_serialize_cb_f cb, void *ctx); 47 lxb_html_serialize_cb_f cb, void *ctx); 54 lxb_html_serialize_cb_f cb, void *ctx); 62 lxb_html_serialize_cb_f cb, void *ctx); 72 lxb_html_serialize_cb_f cb, void *ctx); 82 lxb_html_serialize_cb_f cb, void *ctx);
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | element.h | 37 void *ctx, lxb_css_selector_specificity_t spec, 71 lxb_html_element_style_cb_f cb, void *ctx, 114 lexbor_serialize_cb_f cb, void *ctx);
|
H A D | document.c | 64 void *ctx); 89 lxb_html_document_title_walker(lxb_dom_node_t *node, void *ctx); 103 lexbor_avl_node_t *node, void *ctx); 627 void *ctx) in lxb_html_document_style_remove_by_rule_cb() argument 631 lxb_css_rule_style_t *style = ctx; in lxb_html_document_style_remove_by_rule_cb() 660 lxb_html_document_remove_ctx_t *context = ctx; in lxb_html_document_style_remove_avl_cb() 689 lxb_css_rule_style_t *style = ctx; in lxb_html_document_style_cb() 979 lxb_html_document_title_walker(lxb_dom_node_t *node, void *ctx) in lxb_html_document_title_walker() argument 982 *((void **) ctx) = node; in lxb_html_document_title_walker() 1121 lxb_html_document_event_ctx_t *context = ctx; [all …]
|