Home
last modified time | relevance | path

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

123

/PHP-8.3/Zend/Optimizer/
H A Doptimize_func_calls.c85 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call()
87 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call()
90 uint32_t i, num_args = func->op_array.num_args; in zend_try_inline_call() local
91 num_args += (func->op_array.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_try_inline_call()
99 for (i = 0; i < num_args; i++) { in zend_try_inline_call()
107 if (fcall->extended_value < func->op_array.num_args) { in zend_try_inline_call()
116 } while (i < func->op_array.num_args); in zend_try_inline_call()
146 || arg_num <= info->func->common.num_args in has_known_send_mode()
H A Dzend_func_info.c55 && (call_info->num_args == 2 || call_info->num_args == 3) in zend_range_info()
66 if (call_info->num_args == 3) { in zend_range_info()
H A Dzend_call_graph.h41 int num_args; /* Number of arguments, excluding named and variadic arguments */ member
H A Dzend_call_graph.c73 call_info->num_args = opline->extended_value; in zend_analyze_calls()
263 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()
800 if (num_args == 1 && Z_TYPE_P(args[0]) == IS_STRING && in ct_eval_func_call()
805 if (!can_ct_eval_func_call(func, name, num_args, args)) { in ct_eval_func_call()
820 execute_data = safe_emalloc(num_args, sizeof(zval), ZEND_CALL_FRAME_SLOT * sizeof(zval)); in ct_eval_func_call()
830 EX_NUM_ARGS() = num_args; in ct_eval_func_call()
831 for (i = 0; i < num_args; i++) { in ct_eval_func_call()
836 for (i = 0; i < num_args; i++) { in ct_eval_func_call()
1663 if (call->num_args > 3 || call->send_unpack || call->is_prototype || call->named_args) { in sccp_visit_instr()
1668 for (i = 0; i < call->num_args; i++) { in sccp_visit_instr()
2049 for (i = 0; i < call->num_args; i++) { in remove_call()
[all …]
H A Ddce.c503 && ssa->vars[ssa_op->op1_def].var < op_array->num_args) { in may_break_varargs()
507 && ssa->vars[ssa_op->op2_def].var < op_array->num_args) { in may_break_varargs()
511 && ssa->vars[ssa_op->result_def].var < op_array->num_args) { in may_break_varargs()
H A Dzend_optimizer_internal.h122 uint32_t zend_optimizer_classify_function(zend_string *name, uint32_t num_args);
/PHP-8.3/Zend/
H A Dzend_execute.h260 ZEND_CALL_NUM_ARGS(call) = num_args; in zend_vm_init_call_frame()
276 zend_vm_init_call_frame(call, call_info, func, num_args, object_or_called_scope); in zend_vm_stack_push_call_frame_ex()
281 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
283 uint32_t used_stack = ZEND_CALL_FRAME_SLOT + num_args + func->common.T; in zend_vm_calc_used_stack()
286 used_stack += func->op_array.last_var - MIN(func->op_array.num_args, num_args); in zend_vm_calc_used_stack()
293 uint32_t used_stack = zend_vm_calc_used_stack(num_args, func); in zend_vm_stack_push_call_frame()
296 func, num_args, object_or_called_scope); in zend_vm_stack_push_call_frame()
302 uint32_t count = ZEND_CALL_NUM_ARGS(call) - call->func->op_array.num_args; in zend_vm_stack_free_extra_args_ex()
318 uint32_t num_args = ZEND_CALL_NUM_ARGS(call); in zend_vm_stack_free_args() local
320 if (EXPECTED(num_args > 0)) { in zend_vm_stack_free_args()
[all …]
H A Dzend_llist.h31 typedef void (*llist_apply_with_args_func_t)(void *data, int num_args, va_list args);
59 …nd_llist_apply_with_arguments(zend_llist *l, llist_apply_with_args_func_t func, int num_args, ...);
H A Dzend_API.c234 num_args in zend_wrong_parameters_count_error()
1168 if (num_args < min_num_args || num_args > max_num_args) { in zend_parse_va_args()
1177 num_args in zend_parse_va_args()
1191 while (num_args-- > 0) { in zend_parse_va_args()
2538 if (fptr->common.num_args != num_args) { in zend_check_magic_method_args()
2539 if (num_args == 0) { in zend_check_magic_method_args()
2542 } else if (num_args == 1) { in zend_check_magic_method_args()
2851 internal_function->num_args = ptr->num_args; in zend_register_functions()
2935 uint32_t num_args = reg_function->num_args; in zend_register_functions() local
2937 num_args++; in zend_register_functions()
[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_execute.c1248 for (i = 0; i < num_args; ++i) { in zend_verify_internal_arg_types()
4011 num_args = EX_NUM_ARGS(); in i_init_func_execute_data()
4019 opline += num_args; in i_init_func_execute_data()
4021 EX(opline) += num_args; in i_init_func_execute_data()
4212 uint32_t num_args; in zend_unfinished_calls_gc() local
4249 num_args = 0; in zend_unfinished_calls_gc()
4314 if (EXPECTED(num_args > 0)) { in zend_unfinished_calls_gc()
4319 } while (--num_args); in zend_unfinished_calls_gc()
4742 fbc, num_args, called_scope); in zend_init_dynamic_call_string()
5063 uint32_t num_args = fbc->common.num_args; in zend_get_arg_offset_by_name() local
[all …]
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()
637 (closure->func.common.num_args || in zend_closure_get_debug_info()
639 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info() local
643 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
645 num_args++; in zend_closure_get_debug_info()
647 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()
130 uint32_t num_args = function->num_args + 1; in zend_free_internal_arg_info() local
134 num_args++; in zend_free_internal_arg_info()
136 for (i = 0 ; i < num_args; i++) { in zend_free_internal_arg_info()
599 uint32_t num_args = op_array->num_args; in destroy_op_array() local
604 num_args++; in destroy_op_array()
607 num_args++; in destroy_op_array()
609 for (i = 0 ; i < num_args; i++) { in destroy_op_array()
H A Dzend_builtin_functions.c214 first_extra_arg = ex->func->op_array.num_args; in ZEND_FUNCTION()
249 first_extra_arg = ex->func->op_array.num_args; in ZEND_FUNCTION()
1554 uint32_t num_args = ZEND_CALL_NUM_ARGS(call); in debug_backtrace_get_args() local
1556 if (num_args) { in debug_backtrace_get_args()
1560 array_init_size(arg_array, num_args); in debug_backtrace_get_args()
1564 uint32_t first_extra_arg = MIN(num_args, call->func->op_array.num_args); in debug_backtrace_get_args()
1641 while (i < num_args) { in debug_backtrace_get_args()
1645 if (i < call->func->common.num_args || call->func->common.fn_flags & ZEND_ACC_VARIADIC) { in debug_backtrace_get_args()
1650 MIN(i, call->func->common.num_args) in debug_backtrace_get_args()
1678 Z_ARRVAL_P(arg_array)->nNumOfElements = num_args; in debug_backtrace_get_args()
H A Dzend_compile.h451 uint32_t num_args; member
506 uint32_t num_args; member
532 uint32_t num_args; member
611 (call)->This.u2.num_args
1058 if (UNEXPECTED(arg_num >= zf->common.num_args)) { in zend_check_arg_send_type()
1062 arg_num = zf->common.num_args; in zend_check_arg_send_type()
H A Dzend_extensions.c237 static void zend_extension_message_dispatcher(const zend_extension *extension, int num_args, va_lis… in zend_extension_message_dispatcher() argument
242 if (!extension->message_handler || num_args!=2) { in zend_extension_message_dispatcher()
/PHP-8.3/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.3/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.3/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()
H A Dzend_persist.c613 uint32_t num_args = op_array->num_args; in zend_persist_op_array_ex() local
618 num_args++; in zend_persist_op_array_ex()
621 num_args++; in zend_persist_op_array_ex()
623 arg_info = zend_shared_memdup_put_free(arg_info, sizeof(zend_arg_info) * num_args); in zend_persist_op_array_ex()
624 for (i = 0; i < num_args; i++) { in zend_persist_op_array_ex()
/PHP-8.3/ext/standard/
H A Dpack.c235 int num_args = 0; in PHP_FUNCTION() local
248 Z_PARAM_VARIADIC('*', argv, num_args) in PHP_FUNCTION()
296 if (currentarg >= num_args) { in PHP_FUNCTION()
352 arg = num_args - currentarg; in PHP_FUNCTION()
359 if (currentarg > num_args) { in PHP_FUNCTION()
379 if (currentarg < num_args) { in PHP_FUNCTION()
380 php_error_docref(NULL, E_WARNING, "%d arguments unused", (num_args - currentarg)); in PHP_FUNCTION()
/PHP-8.3/ext/pdo/
H A Dpdo_dbh.c1102 uint32_t num_args = 0; in PHP_METHOD() local
1107 &fetch_mode, &fetch_mode_is_null, &args, &num_args)) { in PHP_METHOD()
1137 if (fetch_mode_is_null || pdo_stmt_setup_fetch_mode(stmt, fetch_mode, 2, args, num_args)) { in PHP_METHOD()
1282 func.num_args = funcs->num_args; in pdo_hash_methods()
1284 func.required_num_args = funcs->num_args; in pdo_hash_methods()
1291 if (ZEND_ARG_IS_VARIADIC(&funcs->arg_info[funcs->num_args])) { in pdo_hash_methods()
1294 func.num_args--; in pdo_hash_methods()
1298 func.num_args = 0; in pdo_hash_methods()
/PHP-8.3/ext/reflection/
H A Dphp_reflection.c732 num_args = fptr->common.num_args; in _function_parameter_string()
734 num_args++; in _function_parameter_string()
1985 uint32_t num_args; in ZEND_METHOD() local
2089 num_args = fptr->common.num_args; in ZEND_METHOD()
2091 num_args++; in ZEND_METHOD()
2129 num_args = fptr->common.num_args; in ZEND_METHOD()
2131 num_args++; in ZEND_METHOD()
2134 if (!num_args) { in ZEND_METHOD()
2488 num_args = fptr->common.num_args; in ZEND_METHOD()
2490 num_args++; in ZEND_METHOD()
[all …]
/PHP-8.3/sapi/cli/
H A Dphp_cli.c1175 int num_args; in WinMain() local
1325 argv_wide = CommandLineToArgvW(GetCommandLineW(), &num_args); in WinMain()
1326 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain()

Completed in 123 milliseconds

123