/php-src/ext/xml/ |
H A D | xml.c | 1072 unsigned int arg_num, in php_xml_check_string_method_arg() argument 1078 ZEND_ASSERT(arg_num != 0); in php_xml_check_string_method_arg() 1084 ZEND_ASSERT(arg_num != 0); in php_xml_check_string_method_arg() 1085 …zend_argument_value_error(arg_num, "an object must be set via xml_set_object() to be able to looku… in php_xml_check_string_method_arg() 1094 if (arg_num) { in php_xml_check_string_method_arg() 1095 …zend_argument_value_error(arg_num, "method %s::%s() does not exist", ZSTR_VAL(ce->name), ZSTR_VAL(… in php_xml_check_string_method_arg()
|
/php-src/Zend/ |
H A D | zend_compile.c | 3673 uint32_t arg_num = i + 1; in zend_compile_args() local 3707 arg_num = zend_get_arg_num(fbc, arg_name); in zend_compile_args() 3720 arg_num = (uint32_t) -1; in zend_compile_args() 3750 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3751 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args() 3766 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3795 opline->op2.num = arg_num; in zend_compile_args() 3805 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3817 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3828 if (fbc && arg_num != (uint32_t) -1 && !ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args() [all …]
|
H A D | zend_API.h | 2200 return zend_flf_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex() 2202 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex() 2225 return zend_flf_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex() 2227 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex() 2249 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double() 2261 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number() 2286 return zend_flf_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex() 2288 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex() 2303 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string() 2522 return zend_parse_arg_str_slow(arg, dest_str, arg_num); in zend_parse_arg_array_ht_or_str() [all …]
|
H A D | zend_API.c | 399 arg_name = get_active_function_arg_name(arg_num); in zend_argument_error_variadic() 403 ZSTR_VAL(func_name), arg_num, in zend_argument_error_variadic() 492 ZEND_ASSERT(arg_num > 0); in zend_null_arg_deprecated() 493 uint32_t arg_offset = arg_num - 1; in zend_null_arg_deprecated() 509 ZSTR_VAL(func_name), arg_num, in zend_null_arg_deprecated() 538 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow() 563 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak() 591 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak() 774 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow() 783 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_flf_parse_arg_str_slow() [all …]
|
H A D | zend_execute_API.c | 603 return get_function_arg_name(func, arg_num); in get_active_function_arg_name() 609 if (!func || arg_num == 0 || func->common.num_args < arg_num) { in get_function_arg_name() 614 return ZSTR_VAL(func->common.arg_info[arg_num - 1].name); in get_function_arg_name() 883 uint32_t arg_num = ZEND_CALL_NUM_ARGS(call) + 1; in zend_call_function() local 891 target = zend_handle_named_arg(&call, name, &arg_num, cache_slot); in zend_call_function() 902 zend_vm_stack_extend_call_frame(&call, arg_num - 1, 1); in zend_call_function() 903 target = ZEND_CALL_ARG(call, arg_num); in zend_call_function() 906 if (ARG_SHOULD_BE_SENT_BY_REF(func, arg_num)) { in zend_call_function() 908 if (!ARG_MAY_BE_SENT_BY_REF(func, arg_num)) { in zend_call_function() 911 zend_param_must_be_ref(func, arg_num); in zend_call_function() [all …]
|
H A D | zend_execute.c | 597 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num) in zend_cannot_pass_by_reference() argument 601 const char *param_name = get_function_arg_name(EX(call)->func, arg_num); in zend_cannot_pass_by_reference() 697 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value) in zend_verify_arg_error() argument 710 zend_argument_type_error(arg_num, "must be of type %s, %s given, called in %s on line %d", in zend_verify_arg_error() 715 zend_argument_type_error(arg_num, in zend_verify_arg_error() 1220 ZEND_ASSERT(arg_num <= zf->common.num_args); in zend_verify_recv_arg_type() 1221 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_recv_arg_type() 1225 zend_verify_arg_error(zf, cur_arg_info, arg_num, arg); in zend_verify_recv_arg_type() 1237 zend_verify_arg_error(zf, arg_info, arg_num, arg); in zend_verify_variadic_arg_type() 2278 const char *arg_name = get_function_arg_name(func, arg_num); in zend_param_must_be_ref() [all …]
|
H A D | zend_vm_execute.h | 2237 uint32_t arg_num; in ZEND_SEND_UNPACK_SPEC_HANDLER() local 2313 arg_num++; in ZEND_SEND_UNPACK_SPEC_HANDLER() 2466 uint32_t arg_num; in ZEND_SEND_ARRAY_SPEC_HANDLER() local 2501 arg_num = 1; in ZEND_SEND_ARRAY_SPEC_HANDLER() 2533 arg_num++; in ZEND_SEND_ARRAY_SPEC_HANDLER() 2542 arg_num = 1; in ZEND_SEND_ARRAY_SPEC_HANDLER() 2587 arg_num++; in ZEND_SEND_ARRAY_SPEC_HANDLER() 3943 uint32_t arg_num; in ZEND_RECV_INIT_SPEC_CONST_HANDLER() local 7278 uint32_t arg_num; in ZEND_SEND_VAL_EX_SPEC_CONST_CONST_HANDLER() local 10558 uint32_t arg_num; in ZEND_SEND_VAL_EX_SPEC_CONST_UNUSED_HANDLER() local [all …]
|
H A D | zend_vm_def.h | 4752 uint32_t arg_num; variable 4867 uint32_t arg_num; variable 4965 uint32_t arg_num; variable 5030 uint32_t arg_num; variable 5114 uint32_t arg_num; variable 5190 arg_num++; in ZEND_HASH_FOREACH_STR_KEY_VAL() 5378 arg_num = 1; 5410 arg_num++; in ZEND_HASH_FOREACH_VAL() 5419 arg_num = 1; 5464 arg_num++; in ZEND_HASH_FOREACH_STR_KEY_VAL() [all …]
|
/php-src/ext/pcntl/ |
H A D | pcntl.c | 786 size_t arg_num, in php_pcntl_set_user_signal_infos() argument 790 zend_argument_value_error(arg_num, "cannot be empty"); in php_pcntl_set_user_signal_infos() 807 …zend_argument_type_error(arg_num, "signals must be of type int, %s given", zend_zval_value_name(us… in php_pcntl_set_user_signal_infos() 813 zend_argument_value_error(arg_num, "signals must be between 1 and %d", PCNTL_G(num_signals)-1); in php_pcntl_set_user_signal_infos()
|
/php-src/ext/openssl/ |
H A D | openssl.c | 530 arg_name = get_active_function_arg_name(arg_num); in php_openssl_check_path_error() 571 if (arg_num == 0) { in php_openssl_check_path_ex() 583 arg_num, error_type, "option %s %s", option_name, error_msg); in php_openssl_check_path_ex() 636 zend_object *cert_obj, zend_string *cert_str, uint32_t arg_num); 640 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num); 646 char *cert_file, size_t cert_file_len, uint32_t arg_num); 1489 return php_openssl_x509_from_str(cert_str, arg_num, false, NULL); in php_openssl_x509_from_param() 2245 char *cert_file, size_t cert_file_len, uint32_t arg_num) in STACK_OF() 3054 if (!php_openssl_check_path_str(csr_str, file_path, arg_num)) { in php_openssl_csr_from_str() 3078 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num) in php_openssl_csr_from_param() argument [all …]
|
H A D | php_openssl.h | 96 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num, 101 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num) in php_openssl_check_path() argument 104 file_path, file_path_len, real_path, arg_num, false, false, NULL); in php_openssl_check_path() 109 zend_string *file_path, char *real_path, uint32_t arg_num, in php_openssl_check_path_str_ex() argument 113 ZSTR_VAL(file_path), ZSTR_LEN(file_path), real_path, arg_num, contains_file_protocol, in php_openssl_check_path_str_ex() 119 zend_string *file_path, char *real_path, uint32_t arg_num) in php_openssl_check_path_str() argument 121 return php_openssl_check_path_str_ex(file_path, real_path, arg_num, true, false, NULL); in php_openssl_check_path_str()
|
/php-src/ext/pgsql/ |
H A D | pgsql.c | 1680 PGresult *result, zend_string *field_name, zend_long field_offset, int arg_num) { in field_arg_to_offset() argument 1686 zend_value_error("Argument #%d must be a field name from this result set", arg_num); in field_arg_to_offset() 1691 zend_value_error("Argument #%d must be greater than or equal to 0", arg_num); in field_arg_to_offset() 1695 …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-src/ext/mbstring/ |
H A D | mbstring.c | 236 static const mbfl_encoding *php_mb_get_encoding(zend_string *encoding_name, uint32_t arg_num) { in php_mb_get_encoding() argument 247 …zend_argument_value_error(arg_num, "must be a valid encoding, \"%s\" given", ZSTR_VAL(encoding_nam… in php_mb_get_encoding() 294 const mbfl_encoding ***return_list, size_t *return_size, bool persistent, uint32_t arg_num) in php_mb_parse_encoding_list() argument 348 if (arg_num == 0) { in php_mb_parse_encoding_list() 351 zend_argument_value_error(arg_num, "contains invalid encoding \"%.*s\"", (int) p1_length, p1); in php_mb_parse_encoding_list() 378 size_t *return_size, uint32_t arg_num) in php_mb_parse_encoding_array() argument 412 zend_argument_value_error(arg_num, "contains invalid encoding \"%s\"", ZSTR_VAL(encoding_str)); in php_mb_parse_encoding_array()
|
/php-src/ext/gmp/ |
H A D | gmp.c | 872 static bool gmp_verify_base(zend_long base, uint32_t arg_num) in gmp_verify_base() argument 875 zend_argument_value_error(arg_num, "must be 0 or between 2 and %d", GMP_MAX_BASE); in gmp_verify_base()
|
/php-src/Zend/Optimizer/ |
H A D | zend_inference.c | 5260 uint32_t arg_num = opline->op1.num; in zend_may_throw_ex() local 5263 if (EXPECTED(arg_num <= op_array->num_args)) { in zend_may_throw_ex() 5264 cur_arg_info = &op_array->arg_info[arg_num-1]; in zend_may_throw_ex()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 8944 uint32_t arg_num = opline->op2.num; local 8956 ZEND_ASSERT(arg_num <= MAX_ARG_FLAG_NUM); 9106 uint32_t arg_num = opline->op2.num; local 9112 arg_num <= MAX_ARG_FLAG_NUM); 9403 uint32_t arg_num = opline->op2.num; local 10289 uint32_t arg_num = opline->op1.num; local 10293 if (EXPECTED(arg_num <= op_array->num_args)) { 10294 arg_info = &op_array->arg_info[arg_num-1]; 10339 uint32_t arg_num = opline->op1.num; local 10388 if (arg_num <= op_array->num_args) { [all …]
|
H A D | zend_jit_trace.c | 456 uint32_t arg_num = opline->op2.num; in zend_jit_trace_send_type() local 458 if (arg_num > op_array->num_args) { in zend_jit_trace_send_type() 464 ZEND_ASSERT(arg_num <= op_array->num_args); in zend_jit_trace_send_type() 465 arg_info = &op_array->arg_info[arg_num-1]; in zend_jit_trace_send_type() 476 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 481 && arg_num < func->internal_function.num_args) { in zend_jit_needs_arg_dtor() 482 const zend_internal_arg_info *arg_info = &func->internal_function.arg_info[arg_num]; in zend_jit_needs_arg_dtor() 491 uint32_t type = STACK_TYPE(JIT_G(current_frame)->call->stack, arg_num); in zend_jit_needs_arg_dtor() 499 if (call_info && arg_num < call_info->num_args && call_info->arg_info[arg_num].opline) { in zend_jit_needs_arg_dtor() 500 const zend_op *opline = call_info->arg_info[arg_num].opline; in zend_jit_needs_arg_dtor()
|
H A D | zend_jit.c | 108 static bool zend_jit_needs_arg_dtor(const zend_function *func, uint32_t arg_num, zend_call_info *ca…
|
/php-src/ext/sockets/ |
H A D | sockets.c | 490 static int php_sock_array_to_fd_set(uint32_t arg_num, zval *sock_array, fd_set *fds, PHP_SOCKET *ma… argument 502 …zend_argument_type_error(arg_num, "must only have elements of type Socket, %s given", zend_zval_va… 508 zend_argument_type_error(arg_num, "contains a closed socket");
|
/php-src/ext/mysqli/ |
H A D | mysqli_api.c | 34 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
|
H A D | mysqli_nonapi.c | 31 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
|
H A D | mysqli.c | 52 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
|
/php-src/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 378 int arg_num = ZEND_NUM_ARGS() - (object ? 0 : 1); in PHP_FUNCTION() local 380 if (object && arg_num > 2) { in PHP_FUNCTION() 395 for (int i = 0; i < arg_num; i++) { in PHP_FUNCTION() 402 if (arg_num == 2) { in PHP_FUNCTION() 405 } else if (arg_num == 3) { in PHP_FUNCTION() 407 } else if (arg_num == 4) { in PHP_FUNCTION() 410 } else if (arg_num == 5) { in PHP_FUNCTION()
|
/php-src/ext/dom/ |
H A D | html_document.c | 717 static bool check_options_validity(uint32_t arg_num, zend_long options) in check_options_validity() argument 721 zend_argument_value_error(arg_num, "contains invalid flags (allowed flags: " in check_options_validity()
|
H A D | xml_document.c | 26 static bool check_options_validity(uint32_t arg_num, zend_long options) in check_options_validity() argument
|