Home
last modified time | relevance | path

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

123

/PHP-8.1/Zend/
H A Dzend_execute.h227 ZEND_CALL_NUM_ARGS(call) = num_args; in zend_vm_init_call_frame()
243 zend_vm_init_call_frame(call, call_info, func, num_args, object_or_called_scope); in zend_vm_stack_push_call_frame_ex()
248 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
250 uint32_t used_stack = ZEND_CALL_FRAME_SLOT + num_args; in zend_vm_calc_used_stack()
253 used_stack += func->op_array.last_var + func->op_array.T - MIN(func->op_array.num_args, num_args); in zend_vm_calc_used_stack()
260 uint32_t used_stack = zend_vm_calc_used_stack(num_args, func); in zend_vm_stack_push_call_frame()
263 func, num_args, object_or_called_scope); in zend_vm_stack_push_call_frame()
269 uint32_t count = ZEND_CALL_NUM_ARGS(call) - call->func->op_array.num_args; in zend_vm_stack_free_extra_args_ex()
285 uint32_t num_args = ZEND_CALL_NUM_ARGS(call); in zend_vm_stack_free_args() local
287 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.c205 num_args in zend_wrong_parameters_count_error()
1109 if (num_args < min_num_args || num_args > max_num_args) { in zend_parse_va_args()
1118 num_args in zend_parse_va_args()
1132 while (num_args-- > 0) { in zend_parse_va_args()
2415 if (fptr->common.num_args != num_args) { in zend_check_magic_method_args()
2416 if (num_args == 0) { in zend_check_magic_method_args()
2419 } else if (num_args == 1) { in zend_check_magic_method_args()
2699 internal_function->num_args = ptr->num_args; in ZEND_END_ARG_INFO()
2781 uint32_t num_args = reg_function->common.num_args; in ZEND_END_ARG_INFO() local
2783 num_args++; in ZEND_END_ARG_INFO()
[all …]
H A Dzend_execute.c1147 for (i = 0; i < num_args; ++i) { in zend_verify_internal_arg_types()
3918 num_args = EX_NUM_ARGS(); in i_init_func_execute_data()
3926 opline += num_args; in i_init_func_execute_data()
3928 EX(opline) += num_args; in i_init_func_execute_data()
4119 uint32_t num_args; in zend_unfinished_calls_gc() local
4155 num_args = 0; in zend_unfinished_calls_gc()
4219 if (EXPECTED(num_args > 0)) { in zend_unfinished_calls_gc()
4224 } while (--num_args); in zend_unfinished_calls_gc()
4632 fbc, num_args, called_scope); in zend_init_dynamic_call_string()
4957 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()
592 (closure->func.common.num_args || in zend_closure_get_debug_info()
594 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info() local
598 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
600 num_args++; in zend_closure_get_debug_info()
602 for (i = 0; i < num_args; i++) { in zend_closure_get_debug_info()
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_opcode.c70 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()
579 uint32_t num_args = op_array->num_args; in destroy_op_array() local
584 num_args++; in destroy_op_array()
587 num_args++; in destroy_op_array()
589 for (i = 0 ; i < num_args; i++) { in destroy_op_array()
H A Dzend_compile.h433 uint32_t num_args; member
488 uint32_t num_args; member
512 uint32_t num_args; member
588 (call)->This.u2.num_args
1003 if (UNEXPECTED(arg_num >= zf->common.num_args)) { in zend_check_arg_send_type()
1007 arg_num = zf->common.num_args; in zend_check_arg_send_type()
H A Dzend_extensions.c238 static void zend_extension_message_dispatcher(const zend_extension *extension, int num_args, va_lis… in zend_extension_message_dispatcher() argument
243 if (!extension->message_handler || num_args!=2) { in zend_extension_message_dispatcher()
H A Dzend_builtin_functions.c202 first_extra_arg = ex->func->op_array.num_args; in ZEND_FUNCTION()
237 first_extra_arg = ex->func->op_array.num_args; in ZEND_FUNCTION()
1538 uint32_t num_args = ZEND_CALL_NUM_ARGS(call); in debug_backtrace_get_args() local
1540 if (num_args) { in debug_backtrace_get_args()
1544 array_init_size(arg_array, num_args); in debug_backtrace_get_args()
1548 uint32_t first_extra_arg = MIN(num_args, call->func->op_array.num_args); in debug_backtrace_get_args()
1586 while (i < num_args) { in debug_backtrace_get_args()
1600 Z_ARRVAL_P(arg_array)->nNumOfElements = num_args; in debug_backtrace_get_args()
H A Dzend_enum.c331 from_function->num_args = 1; in zend_enum_register_funcs()
348 try_from_function->num_args = 1; in zend_enum_register_funcs()
/PHP-8.1/Zend/Optimizer/
H A Doptimize_func_calls.c102 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call()
104 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call()
107 uint32_t i, num_args = func->op_array.num_args; in zend_try_inline_call() local
108 num_args += (func->op_array.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_try_inline_call()
116 for (i = 0; i < num_args; i++) { in zend_try_inline_call()
124 if (fcall->extended_value < func->op_array.num_args) { in zend_try_inline_call()
133 } while (i < func->op_array.num_args); in zend_try_inline_call()
163 || 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; member
H A Dzend_call_graph.c73 call_info->num_args = opline->extended_value; in zend_analyze_calls()
266 for (i = 0; i < call->num_args; i++) { in zend_build_call_map()
H A Dsccp.c805 static bool can_ct_eval_func_call(zend_string *name, uint32_t num_args, zval **args) { in can_ct_eval_func_call() argument
859 if (num_args == 2) { in can_ct_eval_func_call()
885 if (num_args == 1) { in ct_eval_func_call()
927 if (!can_ct_eval_func_call(name, num_args, args)) { in ct_eval_func_call()
942 execute_data = safe_emalloc(num_args, sizeof(zval), ZEND_CALL_FRAME_SLOT * sizeof(zval)); in ct_eval_func_call()
952 EX_NUM_ARGS() = num_args; in ct_eval_func_call()
953 for (i = 0; i < num_args; i++) { in ct_eval_func_call()
958 for (i = 0; i < num_args; i++) { in ct_eval_func_call()
1811 for (i = 0; i < call->num_args; i++) { in sccp_visit_instr()
2175 for (i = 0; i < call->num_args; i++) { in remove_call()
[all …]
H A Ddce.c509 && ssa->vars[ssa_op->op1_def].var < op_array->num_args) { in may_break_varargs()
513 && ssa->vars[ssa_op->op2_def].var < op_array->num_args) { in may_break_varargs()
517 && ssa->vars[ssa_op->result_def].var < op_array->num_args) { in may_break_varargs()
H A Dzend_optimizer_internal.h114 uint32_t zend_optimizer_classify_function(zend_string *name, uint32_t num_args);
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-execute.c69 uint32_t num_args = ZEND_CALL_NUM_ARGS(execute_data); in fuzzer_execute_internal() local
70 for (uint32_t i = 0; i < num_args; i++) { in fuzzer_execute_internal()
/PHP-8.1/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.1/ext/opcache/
H A Dzend_persist_calc.c246 uint32_t num_args = op_array->num_args; in zend_persist_op_array_calc_ex() local
250 num_args++; in zend_persist_op_array_calc_ex()
254 num_args++; in zend_persist_op_array_calc_ex()
256 ADD_SIZE(sizeof(zend_arg_info) * num_args); in zend_persist_op_array_calc_ex()
257 for (i = 0; i < num_args; i++) { in zend_persist_op_array_calc_ex()
H A Dzend_persist.c616 uint32_t num_args = op_array->num_args; in zend_persist_op_array_ex() local
621 num_args++; in zend_persist_op_array_ex()
624 num_args++; in zend_persist_op_array_ex()
626 arg_info = zend_shared_memdup_put_free(arg_info, sizeof(zend_arg_info) * num_args); in zend_persist_op_array_ex()
627 for (i = 0; i < num_args; i++) { in zend_persist_op_array_ex()
/PHP-8.1/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.1/ext/pdo/
H A Dpdo_dbh.c1094 uint32_t num_args = 0; in PHP_METHOD() local
1099 &fetch_mode, &fetch_mode_is_null, &args, &num_args)) { in PHP_METHOD()
1129 if (fetch_mode_is_null || pdo_stmt_setup_fetch_mode(stmt, fetch_mode, 2, args, num_args)) { in PHP_METHOD()
1265 func.num_args = funcs->num_args; in pdo_hash_methods()
1267 func.required_num_args = funcs->num_args; in pdo_hash_methods()
1274 if (ZEND_ARG_IS_VARIADIC(&funcs->arg_info[funcs->num_args])) { in pdo_hash_methods()
1277 func.num_args--; in pdo_hash_methods()
1281 func.num_args = 0; in pdo_hash_methods()
/PHP-8.1/ext/reflection/
H A Dphp_reflection.c722 num_args = fptr->common.num_args; in _function_parameter_string()
724 num_args++; in _function_parameter_string()
2081 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 …]

Completed in 209 milliseconds

123