/php-src/Zend/ |
H A D | zend_frameless_function.h | 46 dest = arg ## arg_num; 49 zend_wrong_parameter_type_error(arg_num, Z_EXPECTED_ARRAY, arg ## arg_num); \ 54 zend_wrong_parameter_type_error(arg_num, Z_EXPECTED_ARRAY_OR_NULL, arg ## arg_num); \ 67 arg ## arg_num = &str_tmp; \ 68 if (!zend_flf_parse_arg_str_slow(arg ## arg_num, &dest_str, arg_num)) { \ 69 zend_wrong_parameter_type_error(arg_num, Z_EXPECTED_ARRAY_OR_STRING, arg ## arg_num); \ 75 zend_wrong_parameter_type_error(arg_num, Z_EXPECTED_BOOL, arg ## arg_num); \ 80 zend_wrong_parameter_type_error(arg_num, Z_EXPECTED_LONG, arg ## arg_num); \ 85 zend_wrong_parameter_type_error(arg_num, Z_EXPECTED_LONG_OR_NULL, arg ## arg_num); \ 93 arg ## arg_num = &tmp; \ [all …]
|
H A D | zend_compile.h | 1080 arg_num--; in zend_check_arg_send_type() 1081 if (UNEXPECTED(arg_num >= zf->common.num_args)) { in zend_check_arg_send_type() 1085 arg_num = zf->common.num_args; in zend_check_arg_send_type() 1090 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \ argument 1093 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \ argument 1096 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \ argument 1103 # define ZEND_SET_ARG_FLAG(zf, arg_num, mask) do { \ argument 1106 # define ZEND_CHECK_ARG_FLAG(zf, arg_num, mask) \ argument 1112 # define ZEND_CHECK_ARG_FLAG(zf, arg_num, mask) \ argument 1117 ZEND_CHECK_ARG_FLAG(zf, arg_num, ZEND_SEND_BY_REF) [all …]
|
H A D | zend_API.h | 2198 return zend_flf_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex() 2200 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex() 2223 return zend_flf_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex() 2225 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex() 2247 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double() 2259 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number() 2284 return zend_flf_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex() 2286 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex() 2301 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string() 2520 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() 472 ZEND_ASSERT(arg_num > 0); in zend_null_arg_deprecated() 473 uint32_t arg_offset = arg_num - 1; in zend_null_arg_deprecated() 489 ZSTR_VAL(func_name), arg_num, in zend_null_arg_deprecated() 518 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow() 543 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak() 571 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak() 754 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow() 763 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_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 …]
|
H A D | zend_execute.h | 66 ZEND_COLD void ZEND_FASTCALL zend_param_must_be_ref(const zend_function *func, uint32_t arg_num); 95 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value); 373 ZEND_API const char *get_active_function_arg_name(uint32_t arg_num); 374 ZEND_API const char *get_function_arg_name(const zend_function *func, uint32_t arg_num); 394 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num);
|
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_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_compile.c | 3671 uint32_t arg_num = i + 1; in zend_compile_args() local 3705 arg_num = zend_get_arg_num(fbc, arg_name); in zend_compile_args() 3718 arg_num = (uint32_t) -1; in zend_compile_args() 3748 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3749 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args() 3764 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3793 opline->op2.num = arg_num; in zend_compile_args() 3803 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3815 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args() 3826 if (fbc && arg_num != (uint32_t) -1 && !ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args() [all …]
|
/php-src/ext/openssl/ |
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()
|
H A D | openssl.c | 529 arg_name = get_active_function_arg_name(arg_num); in php_openssl_check_path_error() 570 if (arg_num == 0) { in php_openssl_check_path_ex() 582 arg_num, error_type, "option %s %s", option_name, error_msg); in php_openssl_check_path_ex() 635 zend_object *cert_obj, zend_string *cert_str, uint32_t arg_num); 639 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num); 645 char *cert_file, size_t cert_file_len, uint32_t arg_num); 1484 return php_openssl_x509_from_str(cert_str, arg_num, false, NULL); in php_openssl_x509_from_param() 2240 char *cert_file, size_t cert_file_len, uint32_t arg_num) in STACK_OF() 3049 if (!php_openssl_check_path_str(csr_str, file_path, arg_num)) { in php_openssl_csr_from_str() 3073 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num) in php_openssl_csr_from_param() argument [all …]
|
/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/Zend/Optimizer/ |
H A D | optimize_func_calls.c | 137 static bool has_known_send_mode(const optimizer_call_info *info, uint32_t arg_num) in has_known_send_mode() argument 146 || arg_num <= info->func->common.num_args in has_known_send_mode()
|
H A D | compact_literals.c | 46 static size_t type_num_classes(const zend_op_array *op_array, uint32_t arg_num) in type_num_classes() argument 49 if (arg_num > 0) { in type_num_classes() 53 if (EXPECTED(arg_num <= op_array->num_args)) { in type_num_classes() 54 arg_info = &op_array->arg_info[arg_num-1]; in type_num_classes()
|
/php-src/ext/dom/ |
H A D | xml_document.c | 26 static bool check_options_validity(uint32_t arg_num, zend_long options) in check_options_validity() argument
|
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()
|
/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/ext/mysqli/ |
H A D | mysqli.c | 52 #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_api.c | 34 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
|
/php-src/ext/pcntl/ |
H A D | pcntl.c | 759 size_t arg_num, in php_pcntl_set_user_signal_infos() argument 763 zend_argument_value_error(arg_num, "cannot be empty"); in php_pcntl_set_user_signal_infos() 780 …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() 786 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/docs-old/ |
H A D | parameter-parsing-api.md | 48 int zend_parse_parameter(int flags, int arg_num, zval **arg, const char *spec, ...);
|
/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 …]
|
/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");
|