/PHP-8.2/Zend/Optimizer/ |
H A D | optimize_func_calls.c | 85 && 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 D | zend_func_info.c | 55 && (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 D | zend_call_graph.h | 41 int num_args; member
|
H A D | zend_call_graph.c | 73 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 D | sccp.c | 763 if (num_args == 2) { in can_ct_eval_func_call() 789 if (num_args == 1 && Z_TYPE_P(args[0]) == IS_STRING && in ct_eval_func_call() 794 if (!can_ct_eval_func_call(func, name, num_args, args)) { in ct_eval_func_call() 809 execute_data = safe_emalloc(num_args, sizeof(zval), ZEND_CALL_FRAME_SLOT * sizeof(zval)); in ct_eval_func_call() 819 EX_NUM_ARGS() = num_args; in ct_eval_func_call() 820 for (i = 0; i < num_args; i++) { in ct_eval_func_call() 825 for (i = 0; i < num_args; i++) { in ct_eval_func_call() 1651 if (call->num_args > 3 || call->send_unpack || call->is_prototype || call->named_args) { in sccp_visit_instr() 1656 for (i = 0; i < call->num_args; i++) { in sccp_visit_instr() 2036 for (i = 0; i < call->num_args; i++) { in remove_call() [all …]
|
H A D | dce.c | 508 && ssa->vars[ssa_op->op1_def].var < op_array->num_args) { in may_break_varargs() 512 && ssa->vars[ssa_op->op2_def].var < op_array->num_args) { in may_break_varargs() 516 && ssa->vars[ssa_op->result_def].var < op_array->num_args) { in may_break_varargs()
|
H A D | zend_optimizer_internal.h | 120 uint32_t zend_optimizer_classify_function(zend_string *name, uint32_t num_args);
|
/PHP-8.2/Zend/ |
H A D | zend_execute.h | 227 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 + func->common.T; in zend_vm_calc_used_stack() 253 used_stack += func->op_array.last_var - 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 D | zend_llist.h | 31 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 D | zend_API.c | 216 num_args in zend_wrong_parameters_count_error() 1120 if (num_args < min_num_args || num_args > max_num_args) { in zend_parse_va_args() 1129 num_args in zend_parse_va_args() 1143 while (num_args-- > 0) { in zend_parse_va_args() 2462 if (fptr->common.num_args != num_args) { in zend_check_magic_method_args() 2463 if (num_args == 0) { in zend_check_magic_method_args() 2466 } else if (num_args == 1) { in zend_check_magic_method_args() 2752 internal_function->num_args = ptr->num_args; in ZEND_END_ARG_INFO() 2836 uint32_t num_args = reg_function->common.num_args; in ZEND_END_ARG_INFO() local 2838 num_args++; in ZEND_END_ARG_INFO() [all …]
|
H A D | zend_execute.c | 1188 for (i = 0; i < num_args; ++i) { in zend_verify_internal_arg_types() 3884 num_args = EX_NUM_ARGS(); in i_init_func_execute_data() 3892 opline += num_args; in i_init_func_execute_data() 3894 EX(opline) += num_args; in i_init_func_execute_data() 4085 uint32_t num_args; in zend_unfinished_calls_gc() local 4122 num_args = 0; in zend_unfinished_calls_gc() 4187 if (EXPECTED(num_args > 0)) { in zend_unfinished_calls_gc() 4192 } while (--num_args); in zend_unfinished_calls_gc() 4615 fbc, num_args, called_scope); in zend_init_dynamic_call_string() 4936 uint32_t num_args = fbc->common.num_args; in zend_get_arg_offset_by_name() local [all …]
|
H A D | zend_llist.c | 241 …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 D | zend_closures.c | 47 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() 626 (closure->func.common.num_args || in zend_closure_get_debug_info() 628 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info() local 632 num_args = closure->func.common.num_args; in zend_closure_get_debug_info() 634 num_args++; in zend_closure_get_debug_info() 636 for (i = 0; i < num_args; i++) { in zend_closure_get_debug_info()
|
H A D | zend_opcode.c | 71 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() 588 uint32_t num_args = op_array->num_args; in destroy_op_array() local 593 num_args++; in destroy_op_array() 596 num_args++; in destroy_op_array() 598 for (i = 0 ; i < num_args; i++) { in destroy_op_array()
|
H A D | zend_builtin_functions.c | 204 first_extra_arg = ex->func->op_array.num_args; in ZEND_FUNCTION() 239 first_extra_arg = ex->func->op_array.num_args; in ZEND_FUNCTION() 1539 uint32_t num_args = ZEND_CALL_NUM_ARGS(call); in debug_backtrace_get_args() local 1541 if (num_args) { in debug_backtrace_get_args() 1545 array_init_size(arg_array, num_args); in debug_backtrace_get_args() 1549 uint32_t first_extra_arg = MIN(num_args, call->func->op_array.num_args); in debug_backtrace_get_args() 1626 while (i < num_args) { in debug_backtrace_get_args() 1630 if (i < call->func->common.num_args || call->func->common.fn_flags & ZEND_ACC_VARIADIC) { in debug_backtrace_get_args() 1635 MIN(i, call->func->common.num_args) in debug_backtrace_get_args() 1663 Z_ARRVAL_P(arg_array)->nNumOfElements = num_args; in debug_backtrace_get_args()
|
H A D | zend_compile.h | 447 uint32_t num_args; member 502 uint32_t num_args; member 528 uint32_t num_args; member 607 (call)->This.u2.num_args 1038 if (UNEXPECTED(arg_num >= zf->common.num_args)) { in zend_check_arg_send_type() 1042 arg_num = zf->common.num_args; in zend_check_arg_send_type()
|
H A D | zend_extensions.c | 238 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()
|
/PHP-8.2/sapi/phpdbg/ |
H A D | phpdbg_frame.c | 35 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.2/sapi/fuzzer/ |
H A D | fuzzer-execute-common.h | 85 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.2/ext/opcache/ |
H A D | zend_persist_calc.c | 263 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 D | zend_persist.c | 609 uint32_t num_args = op_array->num_args; in zend_persist_op_array_ex() local 614 num_args++; in zend_persist_op_array_ex() 617 num_args++; in zend_persist_op_array_ex() 619 arg_info = zend_shared_memdup_put_free(arg_info, sizeof(zend_arg_info) * num_args); in zend_persist_op_array_ex() 620 for (i = 0; i < num_args; i++) { in zend_persist_op_array_ex()
|
/PHP-8.2/ext/standard/ |
H A D | pack.c | 235 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.2/ext/pdo/ |
H A D | pdo_dbh.c | 1102 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.2/ext/reflection/ |
H A D | php_reflection.c | 728 num_args = fptr->common.num_args; in _function_parameter_string() 730 num_args++; in _function_parameter_string() 2106 uint32_t num_args; in ZEND_METHOD() local 2114 num_args = fptr->common.num_args; in ZEND_METHOD() 2116 num_args++; in ZEND_METHOD() 2154 num_args = fptr->common.num_args; in ZEND_METHOD() 2156 num_args++; in ZEND_METHOD() 2159 if (!num_args) { in ZEND_METHOD() 2513 num_args = fptr->common.num_args; in ZEND_METHOD() 2515 num_args++; in ZEND_METHOD() [all …]
|
/PHP-8.2/sapi/cli/ |
H A D | php_cli.c | 1168 int num_args; in WinMain() local 1318 argv_wide = CommandLineToArgvW(GetCommandLineW(), &num_args); in WinMain() 1319 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain()
|