Home
last modified time | relevance | path

Searched refs:num_args (Results 1 – 25 of 68) sorted by relevance

123

/PHP-8.4/ext/dom/
H A Dxpath_callbacks.h56 …oid php_dom_xpath_callbacks_clean_argument_stack(xmlXPathParserContextPtr ctxt, uint32_t num_args);
62 …om_xpath_callbacks *xpath_callbacks, xmlXPathParserContextPtr ctxt, int num_args, php_dom_xpath_no…
63 …om_xpath_callbacks *xpath_callbacks, xmlXPathParserContextPtr ctxt, int num_args, php_dom_xpath_no…
H A Dxpath_callbacks.c63 …void php_dom_xpath_callbacks_clean_argument_stack(xmlXPathParserContextPtr ctxt, uint32_t num_args) in php_dom_xpath_callbacks_clean_argument_stack() argument
65 for (uint32_t i = 0; i < num_args; i++) { in php_dom_xpath_callbacks_clean_argument_stack()
456 …om_xpath_callbacks *xpath_callbacks, xmlXPathParserContextPtr ctxt, int num_args, php_dom_xpath_no… in php_dom_xpath_callbacks_call_php_ns() argument
460 if (UNEXPECTED(num_args == 0)) { in php_dom_xpath_callbacks_call_php_ns()
465 uint32_t param_count = num_args - 1; in php_dom_xpath_callbacks_call_php_ns()
492 …om_xpath_callbacks *xpath_callbacks, xmlXPathParserContextPtr ctxt, int num_args, php_dom_xpath_no… in php_dom_xpath_callbacks_call_custom_ns() argument
494 uint32_t param_count = num_args; in php_dom_xpath_callbacks_call_custom_ns()
/PHP-8.4/Zend/Optimizer/
H A Doptimize_func_calls.c86 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call()
88 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call()
91 uint32_t i, num_args = func->op_array.num_args; in zend_try_inline_call() local
92 num_args += (func->op_array.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_try_inline_call()
100 for (i = 0; i < num_args; i++) { in zend_try_inline_call()
108 if (fcall->extended_value < func->op_array.num_args) { in zend_try_inline_call()
117 } while (i < func->op_array.num_args); in zend_try_inline_call()
147 || arg_num <= info->func->common.num_args in has_known_send_mode()
H A Dzend_func_info.c57 && (call_info->num_args == 2 || call_info->num_args == 3) in zend_range_info()
68 if (call_info->num_args == 3) { in zend_range_info()
H A Dzend_call_graph.h42 int num_args; /* Number of arguments, excluding named and variadic arguments */ member
H A Dzend_call_graph.c74 call_info->num_args = opline->extended_value; in zend_analyze_calls()
118 call_info->num_args = ZEND_FLF_NUM_ARGS(opline->opcode); in zend_analyze_calls()
281 for (i = 0; i < call->num_args; i++) { in zend_build_call_map()
H A Dsccp.c774 if (num_args == 2) { in can_ct_eval_func_call()
796 if (num_args == 1 && Z_TYPE_P(args[0]) == IS_STRING && in ct_eval_func_call_ex()
801 if (!can_ct_eval_func_call(func, name, num_args, args)) { in ct_eval_func_call_ex()
826 EX_NUM_ARGS() = num_args; in ct_eval_func_call_ex()
827 for (i = 0; i < num_args; i++) { in ct_eval_func_call_ex()
832 for (i = 0; i < num_args; i++) { in ct_eval_func_call_ex()
1673 for (i = 0; i < call->num_args; i++) { in sccp_visit_instr()
1729 switch (num_args) { in sccp_visit_instr()
1742 for (uint32_t i = 0; i < num_args; i++) { in sccp_visit_instr()
2099 for (i = 0; i < call->num_args; i++) { in remove_call()
[all …]
/PHP-8.4/Zend/
H A Dzend_execute.h266 ZEND_CALL_NUM_ARGS(call) = num_args; in zend_vm_init_call_frame()
282 zend_vm_init_call_frame(call, call_info, func, num_args, object_or_called_scope); in zend_vm_stack_push_call_frame_ex()
287 static zend_always_inline uint32_t zend_vm_calc_used_stack(uint32_t num_args, zend_function *func) in zend_vm_calc_used_stack() argument
289 uint32_t used_stack = ZEND_CALL_FRAME_SLOT + num_args + func->common.T; in zend_vm_calc_used_stack()
292 used_stack += func->op_array.last_var - MIN(func->op_array.num_args, num_args); in zend_vm_calc_used_stack()
299 uint32_t used_stack = zend_vm_calc_used_stack(num_args, func); in zend_vm_stack_push_call_frame()
302 func, num_args, object_or_called_scope); in zend_vm_stack_push_call_frame()
308 uint32_t count = ZEND_CALL_NUM_ARGS(call) - call->func->op_array.num_args; in zend_vm_stack_free_extra_args_ex()
324 uint32_t num_args = ZEND_CALL_NUM_ARGS(call); in zend_vm_stack_free_args() local
326 if (EXPECTED(num_args > 0)) { in zend_vm_stack_free_args()
[all …]
H A Dzend_llist.h33 typedef void (*llist_apply_with_args_func_t)(void *data, int num_args, va_list args);
61 …nd_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func, int num_args, ...);
H A Dzend_API.c235 num_args in zend_wrong_parameters_count_error()
1221 if (num_args < min_num_args || num_args > max_num_args) { in zend_parse_va_args()
1230 num_args in zend_parse_va_args()
1244 while (num_args-- > 0) { in zend_parse_va_args()
2659 if (fptr->common.num_args != num_args) { in zend_check_magic_method_args()
2660 if (num_args == 0) { in zend_check_magic_method_args()
2663 } else if (num_args == 1) { in zend_check_magic_method_args()
2989 internal_function->num_args = ptr->num_args; in zend_register_functions()
3094 uint32_t num_args = reg_function->num_args; in zend_register_functions() local
3096 num_args++; in zend_register_functions()
[all …]
H A Dzend_builtin_functions.c1672 if (num_args) { in debug_backtrace_get_args()
1676 array_init_size(arg_array, num_args); in debug_backtrace_get_args()
1680 uint32_t first_extra_arg = MIN(num_args, call->func->op_array.num_args); in debug_backtrace_get_args()
1757 while (i < num_args) { in debug_backtrace_get_args()
1766 MIN(i, call->func->common.num_args) in debug_backtrace_get_args()
1915 if (num_args >= 1) { in zend_fetch_debug_backtrace()
1919 if (num_args >= 2) { in zend_fetch_debug_backtrace()
1923 if (num_args >= 3) { in zend_fetch_debug_backtrace()
1964 if (num_args >= 1) { in zend_fetch_debug_backtrace()
1969 if (num_args >= 2) { in zend_fetch_debug_backtrace()
[all …]
H A Dzend_execute.c1601 switch (num_args) { in zend_frameless_observed_call()
4206 num_args = EX_NUM_ARGS(); in i_init_func_execute_data()
4214 opline += num_args; in i_init_func_execute_data()
4216 EX(opline) += num_args; in i_init_func_execute_data()
4407 uint32_t num_args; in zend_unfinished_calls_gc() local
4444 num_args = 0; in zend_unfinished_calls_gc()
4509 if (EXPECTED(num_args > 0)) { in zend_unfinished_calls_gc()
4514 } while (--num_args); in zend_unfinished_calls_gc()
4931 fbc, num_args, called_scope); in zend_init_dynamic_call_string()
5252 uint32_t num_args = fbc->common.num_args; in zend_get_arg_offset_by_name() local
[all …]
H A Dzend_llist.c241 …end_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func, int num_args, ...) in zend_llist_apply_with_arguments() argument
246 va_start(args, num_args); in zend_llist_apply_with_arguments()
248 func(element->data, num_args, args); in zend_llist_apply_with_arguments()
H A Dzend_closures.c47 uint32_t num_args; in ZEND_METHOD() local
51 Z_PARAM_VARIADIC_WITH_NAMED(args, num_args, named_args) in ZEND_METHOD()
54 …if (call_user_function_named(CG(function_table), NULL, ZEND_THIS, return_value, num_args, args, na… in ZEND_METHOD()
648 (closure->func.common.num_args || in zend_closure_get_debug_info()
650 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info() local
654 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
656 num_args++; in zend_closure_get_debug_info()
658 for (i = 0; i < num_args; i++) { in zend_closure_get_debug_info()
H A Dzend_opcode.c71 op_array->num_args = 0; in init_op_array()
131 uint32_t num_args = function->num_args + 1; in zend_free_internal_arg_info() local
135 num_args++; in zend_free_internal_arg_info()
137 for (i = 0 ; i < num_args; i++) { in zend_free_internal_arg_info()
616 uint32_t num_args = op_array->num_args; in destroy_op_array() local
621 num_args++; in destroy_op_array()
624 num_args++; in destroy_op_array()
626 for (i = 0 ; i < num_args; i++) { in destroy_op_array()
H A Dzend_compile.h511 uint32_t num_args; member
570 uint32_t num_args; member
599 uint32_t num_args; member
680 (call)->This.u2.num_args
1133 if (UNEXPECTED(arg_num >= zf->common.num_args)) { in zend_check_arg_send_type()
1137 arg_num = zf->common.num_args; in zend_check_arg_send_type()
H A Dzend_extensions.c239 static void zend_extension_message_dispatcher(const zend_extension *extension, int num_args, va_lis… in zend_extension_message_dispatcher() argument
244 if (!extension->message_handler || num_args!=2) { in zend_extension_message_dispatcher()
/PHP-8.4/sapi/phpdbg/
H A Dphpdbg_frame.c35 if (i < func->common.num_args) { in ZEND_EXTERN_MODULE_GLOBALS()
56 uint32_t i = 0, first_extra_arg = op_array->num_args, num_args = ZEND_CALL_NUM_ARGS(ex); in phpdbg_compile_stackframe() local
73 while (i < num_args) { in phpdbg_compile_stackframe()
206 m = func ? func->common.num_args : 0; in phpdbg_dump_prototype()
/PHP-8.4/sapi/fuzzer/
H A Dfuzzer-execute-common.h85 uint32_t num_args = ZEND_CALL_NUM_ARGS(execute_data); in fuzzer_execute_internal() local
86 for (uint32_t i = 0; i < num_args; i++) { in fuzzer_execute_internal()
/PHP-8.4/ext/pdo_sqlite/
H A Dpdo_sqlite.stub.php50 int $num_args = -1, argument
/PHP-8.4/ext/opcache/
H A Dzend_persist_calc.c263 uint32_t num_args = op_array->num_args; in zend_persist_op_array_calc_ex() local
267 num_args++; in zend_persist_op_array_calc_ex()
271 num_args++; in zend_persist_op_array_calc_ex()
273 ADD_SIZE(sizeof(zend_arg_info) * num_args); in zend_persist_op_array_calc_ex()
274 for (i = 0; i < num_args; i++) { in zend_persist_op_array_calc_ex()
/PHP-8.4/ext/standard/
H A Dpack.c233 int num_args = 0; in PHP_FUNCTION() local
246 Z_PARAM_VARIADIC('*', argv, num_args) in PHP_FUNCTION()
294 if (currentarg >= num_args) { in PHP_FUNCTION()
350 arg = num_args - currentarg; in PHP_FUNCTION()
357 if (currentarg > num_args) { in PHP_FUNCTION()
377 if (currentarg < num_args) { in PHP_FUNCTION()
378 php_error_docref(NULL, E_WARNING, "%d arguments unused", (num_args - currentarg)); in PHP_FUNCTION()
/PHP-8.4/ext/pdo_sqlite/tests/subclasses/
H A Dpdo_sqlite_createafunction_arg_error.phpt47 Pdo\Sqlite::createFunction(): Argument #3 ($num_args) must be of type int, null given
/PHP-8.4/ext/pdo/
H A Dpdo_dbh.c1189 uint32_t num_args = 0; in PHP_METHOD() local
1194 &fetch_mode, &fetch_mode_is_null, &args, &num_args)) { in PHP_METHOD()
1224 if (fetch_mode_is_null || pdo_stmt_setup_fetch_mode(stmt, fetch_mode, 2, args, num_args)) { in PHP_METHOD()
1374 func.num_args = funcs->num_args; in pdo_hash_methods()
1376 func.required_num_args = funcs->num_args; in pdo_hash_methods()
1383 if (ZEND_ARG_IS_VARIADIC(&funcs->arg_info[funcs->num_args])) { in pdo_hash_methods()
1386 func.num_args--; in pdo_hash_methods()
1390 func.num_args = 0; in pdo_hash_methods()
/PHP-8.4/ext/zend_test/
H A Dtest.c476 uint32_t num_args; in ZEND_FUNCTION() local
481 Z_PARAM_VARIADIC_WITH_NAMED(args, num_args, named_args) in ZEND_FUNCTION()
486 zend_result status = object_init_with_constructor(&obj, ce, num_args, args, named_args); in ZEND_FUNCTION()
864 fptr->num_args = 0; in zend_test_class_method_get()
888 fptr->num_args = 0; in zend_test_class_static_method_get()
1237 .num_args = 1,

Completed in 114 milliseconds

123