Home
last modified time | relevance | path

Searched refs:arg_num (Results 1 – 25 of 27) sorted by relevance

12

/PHP-8.1/Zend/
H A Dzend_compile.h1002 arg_num--; in zend_check_arg_send_type()
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()
1012 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \ argument
1015 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \ argument
1018 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \ argument
1025 # define ZEND_SET_ARG_FLAG(zf, arg_num, mask) do { \ argument
1028 # define ZEND_CHECK_ARG_FLAG(zf, arg_num, mask) \ argument
1034 # define ZEND_CHECK_ARG_FLAG(zf, arg_num, mask) \ argument
1039 ZEND_CHECK_ARG_FLAG(zf, arg_num, ZEND_SEND_BY_REF)
[all …]
H A Dzend_API.h1942 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool()
1958 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long()
1974 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double()
1986 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number()
1998 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str()
2007 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string()
2022 if (!zend_parse_arg_str(arg, dest, check_null, arg_num) || in zend_parse_arg_path_str()
2114 return zend_parse_arg_long_slow(arg, dest_long, arg_num); in zend_parse_arg_array_ht_or_long()
2163 return zend_parse_arg_long_slow(arg, dest_long, arg_num); in zend_parse_arg_obj_or_long()
2224 return zend_parse_arg_str_slow(arg, dest_str, arg_num); in zend_parse_arg_array_ht_or_str()
[all …]
H A Dzend_API.c370 arg_name = get_active_function_arg_name(arg_num); in zend_argument_error_variadic()
374 ZSTR_VAL(func_name), arg_num, in zend_argument_error_variadic()
443 ZEND_ASSERT(arg_num > 0); in zend_null_arg_deprecated()
444 uint32_t arg_offset = arg_num - 1; in zend_null_arg_deprecated()
460 ZSTR_VAL(func_name), arg_num, in zend_null_arg_deprecated()
489 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow()
506 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak()
534 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak()
679 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow()
993 zend_argument_type_error(arg_num, "%s", error); in zend_parse_arg()
[all …]
H A Dzend_vm_def.h4699 uint32_t arg_num; variable
4814 uint32_t arg_num; variable
4912 uint32_t arg_num; variable
4977 uint32_t arg_num; variable
5061 uint32_t arg_num; variable
5137 arg_num++; in ZEND_HASH_FOREACH_STR_KEY_VAL()
5325 arg_num = 1;
5357 arg_num++; in ZEND_HASH_FOREACH_VAL()
5366 arg_num = 1;
5411 arg_num++; in ZEND_HASH_FOREACH_STR_KEY_VAL()
[all …]
H A Dzend_execute_API.c579 return get_function_arg_name(func, arg_num); in get_active_function_arg_name()
585 if (!func || func->common.num_args < arg_num) { in get_function_arg_name()
590 return ZSTR_VAL(func->common.arg_info[arg_num - 1].name); in get_function_arg_name()
843 uint32_t arg_num = ZEND_CALL_NUM_ARGS(call) + 1; in zend_call_function() local
851 target = zend_handle_named_arg(&call, name, &arg_num, cache_slot); in zend_call_function()
862 zend_vm_stack_extend_call_frame(&call, arg_num - 1, 1); in zend_call_function()
863 target = ZEND_CALL_ARG(call, arg_num); in zend_call_function()
866 if (ARG_SHOULD_BE_SENT_BY_REF(func, arg_num)) { in zend_call_function()
868 if (!ARG_MAY_BE_SENT_BY_REF(func, arg_num)) { in zend_call_function()
871 zend_param_must_be_ref(func, arg_num); in zend_call_function()
[all …]
H A Dzend_execute.h64 ZEND_COLD void ZEND_FASTCALL zend_param_must_be_ref(const zend_function *func, uint32_t arg_num);
83 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value);
340 ZEND_API const char *get_active_function_arg_name(uint32_t arg_num);
341 ZEND_API const char *get_function_arg_name(const zend_function *func, uint32_t arg_num);
349 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num);
H A Dzend_execute.c576 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num) in zend_cannot_pass_by_reference() argument
580 const char *param_name = get_function_arg_name(EX(call)->func, arg_num); in zend_cannot_pass_by_reference()
678 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value) in zend_verify_arg_error() argument
691 zend_argument_type_error(arg_num, "must be of type %s, %s given, called in %s on line %d", in zend_verify_arg_error()
696 zend_argument_type_error(arg_num, in zend_verify_arg_error()
1117 ZEND_ASSERT(arg_num <= zf->common.num_args); in zend_verify_recv_arg_type()
1118 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_recv_arg_type()
1122 zend_verify_arg_error(zf, cur_arg_info, arg_num, arg); in zend_verify_recv_arg_type()
1134 zend_verify_arg_error(zf, arg_info, arg_num, arg); in zend_verify_variadic_arg_type()
2216 const char *arg_name = get_function_arg_name(func, arg_num); in zend_param_must_be_ref()
[all …]
H A Dzend_vm_execute.h2117 uint32_t arg_num; in ZEND_SEND_UNPACK_SPEC_HANDLER() local
2193 arg_num++; in ZEND_SEND_UNPACK_SPEC_HANDLER()
2346 uint32_t arg_num; in ZEND_SEND_ARRAY_SPEC_HANDLER() local
2381 arg_num = 1; in ZEND_SEND_ARRAY_SPEC_HANDLER()
2413 arg_num++; in ZEND_SEND_ARRAY_SPEC_HANDLER()
2422 arg_num = 1; in ZEND_SEND_ARRAY_SPEC_HANDLER()
2467 arg_num++; in ZEND_SEND_ARRAY_SPEC_HANDLER()
3717 uint32_t arg_num; in ZEND_RECV_INIT_SPEC_CONST_HANDLER() local
7016 uint32_t arg_num; in ZEND_SEND_VAL_EX_SPEC_CONST_CONST_HANDLER() local
10099 uint32_t arg_num; in ZEND_SEND_VAL_EX_SPEC_CONST_UNUSED_HANDLER() local
[all …]
H A Dzend_compile.c3519 uint32_t arg_num = i + 1; in zend_compile_args() local
3553 arg_num = zend_get_arg_num(fbc, arg_name); in zend_compile_args()
3566 arg_num = (uint32_t) -1; in zend_compile_args()
3596 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3597 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3609 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3638 opline->op2.num = arg_num; in zend_compile_args()
3648 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3660 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3671 if (fbc && arg_num != (uint32_t) -1 && !ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
[all …]
/PHP-8.1/ext/openssl/
H A Dopenssl.c488 arg_name = get_active_function_arg_name(arg_num); in php_openssl_check_path_error()
529 if (arg_num == 0) { in php_openssl_check_path_ex()
541 arg_num, error_type, "option %s %s", option_name, error_msg); in php_openssl_check_path_ex()
562 zend_string *file_path, char *real_path, uint32_t arg_num, in php_openssl_check_path_str_ex() argument
572 zend_string *file_path, char *real_path, uint32_t arg_num) in php_openssl_check_path_str() argument
619 zend_object *cert_obj, zend_string *cert_str, uint32_t arg_num);
623 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num);
629 char *cert_file, size_t cert_file_len, uint32_t arg_num);
2320 char *cert_file, size_t cert_file_len, uint32_t arg_num) in STACK_OF()
3142 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num) in php_openssl_csr_from_param() argument
[all …]
/PHP-8.1/ext/intl/calendar/
H A Dcalendar_methods.cpp378 int arg_num = ZEND_NUM_ARGS() - (object ? 0 : 1); in PHP_FUNCTION() local
387 for (int i = 0; i < arg_num; i++) { in PHP_FUNCTION()
394 if (arg_num == 2) { in PHP_FUNCTION()
397 } else if (arg_num == 3) { in PHP_FUNCTION()
399 } else if (arg_num == 4) { in PHP_FUNCTION()
402 } else if (arg_num == 5) { in PHP_FUNCTION()
/PHP-8.1/Zend/Optimizer/
H A Doptimize_func_calls.c154 static bool has_known_send_mode(const optimizer_call_info *info, uint32_t arg_num) in has_known_send_mode() argument
163 || arg_num <= info->func->common.num_args in has_known_send_mode()
H A Dcompact_literals.c58 static size_t type_num_classes(const zend_op_array *op_array, uint32_t arg_num) in type_num_classes() argument
61 if (arg_num > 0) { in type_num_classes()
65 if (EXPECTED(arg_num <= op_array->num_args)) { in type_num_classes()
66 arg_info = &op_array->arg_info[arg_num-1]; in type_num_classes()
/PHP-8.1/ext/mysqli/
H A Dmysqli_nonapi.c31 #define ERROR_ARG_POS(arg_num) (getThis() ? (arg_num-1) : (arg_num)) argument
H A Dmysqli.c50 #define ERROR_ARG_POS(arg_num) (getThis() ? (arg_num-1) : (arg_num)) argument
H A Dmysqli_api.c34 #define ERROR_ARG_POS(arg_num) (getThis() ? (arg_num-1) : (arg_num)) argument
/PHP-8.1/ext/mbstring/
H A Dmbstring.c215 static const mbfl_encoding *php_mb_get_encoding(zend_string *encoding_name, uint32_t arg_num) { in php_mb_get_encoding() argument
226 …zend_argument_value_error(arg_num, "must be a valid encoding, \"%s\" given", ZSTR_VAL(encoding_nam… in php_mb_get_encoding()
263 const mbfl_encoding ***return_list, size_t *return_size, bool persistent, uint32_t arg_num, in php_mb_parse_encoding_list() argument
321 if (arg_num == 0) { in php_mb_parse_encoding_list()
324 zend_argument_value_error(arg_num, "contains invalid encoding \"%s\"", p1); in php_mb_parse_encoding_list()
353 size_t *return_size, uint32_t arg_num) in php_mb_parse_encoding_array() argument
387 zend_argument_value_error(arg_num, "contains invalid encoding \"%s\"", ZSTR_VAL(encoding_str)); in php_mb_parse_encoding_array()
/PHP-8.1/ext/oci8/
H A Doci8_interface.c43 #define ERROR_ARG_POS(arg_num) (getThis() ? (arg_num-1) : (arg_num)) argument
/PHP-8.1/docs/
H A Dparameter-parsing-api.md48 int zend_parse_parameter(int flags, int arg_num, zval **arg, const char *spec, ...);
/PHP-8.1/ext/sockets/
H A Dsockets.c653 static int php_sock_array_to_fd_set(uint32_t arg_num, zval *sock_array, fd_set *fds, PHP_SOCKET *ma… argument
665 …zend_argument_type_error(arg_num, "must only have elements of type Socket, %s given", zend_zval_ty…
671 zend_argument_type_error(arg_num, "contains a closed socket");
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit_x86.dasc10583 uint32_t arg_num = opline->op2.num;
10595 ZEND_ASSERT(arg_num <= MAX_ARG_FLAG_NUM);
10749 uint32_t arg_num = opline->op2.num;
10754 arg_num <= MAX_ARG_FLAG_NUM);
10970 uint32_t arg_num = opline->op2.num;
12853 uint32_t arg_num = opline->op1.num;
12858 arg_info = &op_array->arg_info[arg_num-1];
12882 | cmp dword EX->This.u2.num_args, arg_num
12916 uint32_t arg_num = opline->op1.num;
12932 | cmp dword EX->This.u2.num_args, arg_num
[all …]
H A Dzend_jit_arm64.dasc9853 uint32_t arg_num = opline->op2.num;
9865 ZEND_ASSERT(arg_num <= MAX_ARG_FLAG_NUM);
10023 uint32_t arg_num = opline->op2.num;
10028 arg_num <= MAX_ARG_FLAG_NUM);
10250 uint32_t arg_num = opline->op2.num;
12092 uint32_t arg_num = opline->op1.num;
12097 arg_info = &op_array->arg_info[arg_num-1];
12123 | CMP_32_WITH_CONST TMP1w, arg_num, TMP2w
12157 uint32_t arg_num = opline->op1.num;
12174 | CMP_32_WITH_CONST TMP1w, arg_num, TMP2w
[all …]
H A Dzend_jit_trace.c487 uint32_t arg_num = opline->op2.num; in zend_jit_trace_send_type() local
489 if (arg_num > op_array->num_args) { in zend_jit_trace_send_type()
495 ZEND_ASSERT(arg_num <= op_array->num_args); in zend_jit_trace_send_type()
496 arg_info = &op_array->arg_info[arg_num-1]; in zend_jit_trace_send_type()
507 static bool zend_jit_needs_arg_dtor(const zend_function *func, uint32_t arg_num, zend_call_info *ca… in zend_jit_needs_arg_dtor() argument
512 && arg_num < func->internal_function.num_args) { in zend_jit_needs_arg_dtor()
513 const zend_internal_arg_info *arg_info = &func->internal_function.arg_info[arg_num]; in zend_jit_needs_arg_dtor()
522 uint32_t type = STACK_TYPE(JIT_G(current_frame)->call->stack, arg_num); in zend_jit_needs_arg_dtor()
530 if (call_info && arg_num < call_info->num_args && call_info->arg_info[arg_num].opline) { in zend_jit_needs_arg_dtor()
531 const zend_op *opline = call_info->arg_info[arg_num].opline; in zend_jit_needs_arg_dtor()
/PHP-8.1/ext/pgsql/
H A Dpgsql.c1765 PGresult *result, zend_string *field_name, zend_long field_offset, int arg_num) { in field_arg_to_offset() argument
1771 zend_value_error("Argument #%d must be a field name from this result set", arg_num); in field_arg_to_offset()
1776 zend_value_error("Argument #%d must be greater than or equal to 0", arg_num); in field_arg_to_offset()
1780 …nd_value_error("Argument #%d must be less than the number of fields for this result set", arg_num); in field_arg_to_offset()
/PHP-8.1/ext/ldap/
H A Dldap.c749 static LDAPControl** _php_ldap_controls_from_array(LDAP *ld, zval* array, uint32_t arg_num) in _php_ldap_controls_from_array() argument
762 zend_argument_type_error(arg_num, "must contain only arrays, where each array is a control"); in _php_ldap_controls_from_array()

Completed in 480 milliseconds

12