Home
last modified time | relevance | path

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

12

/php-src/Zend/
H A Dzend_frameless_function.h46 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 Dzend_compile.h1132 arg_num--; in zend_check_arg_send_type()
1133 if (UNEXPECTED(arg_num >= zf->common.num_args)) { in zend_check_arg_send_type()
1137 arg_num = zf->common.num_args; in zend_check_arg_send_type()
1142 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \ argument
1145 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \ argument
1148 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \ argument
1155 # define ZEND_SET_ARG_FLAG(zf, arg_num, mask) do { \ argument
1158 # define ZEND_CHECK_ARG_FLAG(zf, arg_num, mask) \ argument
1164 # define ZEND_CHECK_ARG_FLAG(zf, arg_num, mask) \ argument
1169 ZEND_CHECK_ARG_FLAG(zf, arg_num, ZEND_SEND_BY_REF)
[all …]
H A Dzend_API.h2203 return zend_flf_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex()
2205 return zend_parse_arg_bool_slow(arg, dest, arg_num); in zend_parse_arg_bool_ex()
2228 return zend_flf_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex()
2230 return zend_parse_arg_long_slow(arg, dest, arg_num); in zend_parse_arg_long_ex()
2252 return zend_parse_arg_double_slow(arg, dest, arg_num); in zend_parse_arg_double()
2264 return zend_parse_arg_number_slow(arg, dest, arg_num); in zend_parse_arg_number()
2289 return zend_flf_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex()
2291 return zend_parse_arg_str_slow(arg, dest, arg_num); in zend_parse_arg_str_ex()
2306 if (!zend_parse_arg_str(arg, &str, check_null, arg_num)) { in zend_parse_arg_string()
2525 return zend_parse_arg_str_slow(arg, dest_str, arg_num); in zend_parse_arg_array_ht_or_str()
[all …]
H A Dzend_API.c400 arg_name = get_active_function_arg_name(arg_num); in zend_argument_error_variadic()
404 ZSTR_VAL(func_name), arg_num, in zend_argument_error_variadic()
498 ZEND_ASSERT(arg_num > 0); in zend_null_arg_deprecated()
499 uint32_t arg_offset = arg_num - 1; in zend_null_arg_deprecated()
515 ZSTR_VAL(func_name), arg_num, in zend_null_arg_deprecated()
544 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow()
569 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak()
597 if (arg_num != (uint32_t)-1) { in zend_parse_arg_long_weak()
780 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow()
789 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_flf_parse_arg_str_slow()
[all …]
H A Dzend_execute_API.c631 return get_function_arg_name(func, arg_num); in get_active_function_arg_name()
637 if (!func || arg_num == 0 || func->common.num_args < arg_num) { in get_function_arg_name()
642 return ZSTR_VAL(func->common.arg_info[arg_num - 1].name); in get_function_arg_name()
911 uint32_t arg_num = ZEND_CALL_NUM_ARGS(call) + 1; in zend_call_function() local
919 target = zend_handle_named_arg(&call, name, &arg_num, cache_slot); in zend_call_function()
930 zend_vm_stack_extend_call_frame(&call, arg_num - 1, 1); in zend_call_function()
931 target = ZEND_CALL_ARG(call, arg_num); in zend_call_function()
934 if (ARG_SHOULD_BE_SENT_BY_REF(func, arg_num)) { in zend_call_function()
936 if (!ARG_MAY_BE_SENT_BY_REF(func, arg_num)) { in zend_call_function()
939 zend_param_must_be_ref(func, arg_num); in zend_call_function()
[all …]
H A Dzend_vm_def.h4846 uint32_t arg_num; variable
4961 uint32_t arg_num; variable
5059 uint32_t arg_num; variable
5124 uint32_t arg_num; variable
5208 uint32_t arg_num; variable
5284 arg_num++; in ZEND_HASH_FOREACH_STR_KEY_VAL()
5472 arg_num = 1;
5504 arg_num++; in ZEND_HASH_FOREACH_VAL()
5513 arg_num = 1;
5558 arg_num++; in ZEND_HASH_FOREACH_STR_KEY_VAL()
[all …]
H A Dzend_execute.h67 ZEND_COLD void ZEND_FASTCALL zend_param_must_be_ref(const zend_function *func, uint32_t arg_num);
101 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value);
379 ZEND_API const char *get_active_function_arg_name(uint32_t arg_num);
380 ZEND_API const char *get_function_arg_name(const zend_function *func, uint32_t arg_num);
400 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num);
H A Dzend_vm_execute.h2301 uint32_t arg_num; in ZEND_SEND_UNPACK_SPEC_HANDLER() local
2377 arg_num++; in ZEND_SEND_UNPACK_SPEC_HANDLER()
2530 uint32_t arg_num; in ZEND_SEND_ARRAY_SPEC_HANDLER() local
2565 arg_num = 1; in ZEND_SEND_ARRAY_SPEC_HANDLER()
2597 arg_num++; in ZEND_SEND_ARRAY_SPEC_HANDLER()
2606 arg_num = 1; in ZEND_SEND_ARRAY_SPEC_HANDLER()
2651 arg_num++; in ZEND_SEND_ARRAY_SPEC_HANDLER()
4073 uint32_t arg_num; in ZEND_RECV_INIT_SPEC_CONST_HANDLER() local
7514 uint32_t arg_num; in ZEND_SEND_VAL_EX_SPEC_CONST_CONST_HANDLER() local
10843 uint32_t arg_num; in ZEND_SEND_VAL_EX_SPEC_CONST_UNUSED_HANDLER() local
[all …]
H A Dzend_execute.c599 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num) in zend_cannot_pass_by_reference() argument
603 const char *param_name = get_function_arg_name(EX(call)->func, arg_num); in zend_cannot_pass_by_reference()
699 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value) in zend_verify_arg_error() argument
712 zend_argument_type_error(arg_num, "must be of type %s, %s given, called in %s on line %d", in zend_verify_arg_error()
717 zend_argument_type_error(arg_num, in zend_verify_arg_error()
1259 ZEND_ASSERT(arg_num <= zf->common.num_args); in zend_verify_recv_arg_type()
1260 cur_arg_info = &zf->common.arg_info[arg_num-1]; in zend_verify_recv_arg_type()
1264 zend_verify_arg_error(zf, cur_arg_info, arg_num, arg); in zend_verify_recv_arg_type()
1276 zend_verify_arg_error(zf, arg_info, arg_num, arg); in zend_verify_variadic_arg_type()
2467 const char *arg_name = get_function_arg_name(func, arg_num); in zend_param_must_be_ref()
[all …]
H A Dzend_compile.c3740 uint32_t arg_num = i + 1; in zend_compile_args() local
3774 arg_num = zend_get_arg_num(fbc, arg_name); in zend_compile_args()
3787 arg_num = (uint32_t) -1; in zend_compile_args()
3817 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3818 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) { in zend_compile_args()
3833 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3862 opline->op2.num = arg_num; in zend_compile_args()
3872 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3884 if (fbc && arg_num != (uint32_t) -1) { in zend_compile_args()
3895 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 Dphp_openssl.h98 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num,
103 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num) in php_openssl_check_path() argument
106 file_path, file_path_len, real_path, arg_num, false, false, NULL); in php_openssl_check_path()
111 zend_string *file_path, char *real_path, uint32_t arg_num, in php_openssl_check_path_str_ex() argument
115 ZSTR_VAL(file_path), ZSTR_LEN(file_path), real_path, arg_num, contains_file_protocol, in php_openssl_check_path_str_ex()
121 zend_string *file_path, char *real_path, uint32_t arg_num) in php_openssl_check_path_str() argument
123 return php_openssl_check_path_str_ex(file_path, real_path, arg_num, true, false, NULL); in php_openssl_check_path_str()
H A Dopenssl.c547 arg_name = get_active_function_arg_name(arg_num); in php_openssl_check_path_error()
588 if (arg_num == 0) { in php_openssl_check_path_ex()
600 arg_num, error_type, "option %s %s", option_name, error_msg); in php_openssl_check_path_ex()
653 zend_object *cert_obj, zend_string *cert_str, uint32_t arg_num);
657 zend_object *csr_obj, zend_string *csr_str, uint32_t arg_num);
663 char *cert_file, size_t cert_file_len, uint32_t arg_num);
1512 return php_openssl_x509_from_str(cert_str, arg_num, false, NULL); in php_openssl_x509_from_param()
2275 char *cert_file, size_t cert_file_len, uint32_t arg_num) in STACK_OF()
3084 if (!php_openssl_check_path_str(csr_str, file_path, arg_num)) { in php_openssl_csr_from_str()
3108 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 Dcalendar_methods.cpp376 int arg_num = ZEND_NUM_ARGS() - (object ? 0 : 1); in PHP_FUNCTION() local
378 if (object && arg_num > 2) { in PHP_FUNCTION()
393 for (int i = 0; i < arg_num; i++) { in PHP_FUNCTION()
400 if (arg_num == 2) { in PHP_FUNCTION()
403 } else if (arg_num == 3) { in PHP_FUNCTION()
405 } else if (arg_num == 4) { in PHP_FUNCTION()
408 } else if (arg_num == 5) { in PHP_FUNCTION()
/php-src/ext/standard/
H A Dfile.h51 PHPAPI int php_csv_handle_escape_argument(const zend_string *escape_str, uint32_t arg_num);
/php-src/ext/dom/
H A Dxml_document.c29 static bool check_options_validity(uint32_t arg_num, zend_long options) in check_options_validity() argument
51 zend_argument_value_error(arg_num, "contains invalid flags (allowed flags: " in check_options_validity()
/php-src/Zend/Optimizer/
H A Doptimize_func_calls.c138 static bool has_known_send_mode(const optimizer_call_info *info, uint32_t arg_num) in has_known_send_mode() argument
147 || arg_num <= info->func->common.num_args in has_known_send_mode()
H A Dcompact_literals.c46 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/xml/
H A Dxml.c1075 unsigned int arg_num, in php_xml_check_string_method_arg() argument
1081 ZEND_ASSERT(arg_num != 0); in php_xml_check_string_method_arg()
1087 ZEND_ASSERT(arg_num != 0); in php_xml_check_string_method_arg()
1088 …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()
1095 if (arg_num) { in php_xml_check_string_method_arg()
1096 …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 Dmysqli.c51 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
H A Dmysqli_api.c31 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
75 …_bind(MY_STMT *stmt, uint32_t num_vars, zval *args, const char * const types, unsigned int arg_num) in mysqli_stmt_bind_param_do_bind() argument
108 …zend_argument_value_error(arg_num, "must only contain the \"b\", \"d\", \"i\", \"s\" type specifie… in mysqli_stmt_bind_param_do_bind()
H A Dmysqli_nonapi.c29 #define ERROR_ARG_POS(arg_num) (hasThis() ? (arg_num-1) : (arg_num)) argument
/php-src/ext/xsl/
H A Dxsltprocessor.c552 static zend_string *xsl_create_parameter_key(uint32_t arg_num, const zend_string *namespace, zend_s… in xsl_create_parameter_key() argument
560 …zend_argument_value_error(arg_num, "must not use clark notation when argument #1 ($namespace) is n… in xsl_create_parameter_key()
566 …zend_argument_value_error(arg_num, "must not be a QName when argument #1 ($namespace) is not empty… in xsl_create_parameter_key()
/php-src/ext/bcmath/
H A Dbcmath.c151 static zend_always_inline zend_result bcmath_check_scale(zend_long scale, uint32_t arg_num) in bcmath_check_scale() argument
154 zend_argument_value_error(arg_num, "must be between 0 and %d", INT_MAX); in bcmath_check_scale()
1375 bc_num *num, size_t *scale, zend_object *obj, zend_string *str, zend_long lval, uint32_t arg_num) in bc_num_from_obj_or_str_or_long_with_err() argument
1379 zend_argument_value_error(arg_num, "is not well-formed"); in bc_num_from_obj_or_str_or_long_with_err()
1383 zend_argument_value_error(arg_num, "must be between 0 and %d", INT_MAX); in bc_num_from_obj_or_str_or_long_with_err()
/php-src/ext/pcntl/
H A Dpcntl.c859 size_t arg_num, in php_pcntl_set_user_signal_infos() argument
863 zend_argument_must_not_be_empty_error(arg_num); in php_pcntl_set_user_signal_infos()
881 …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()
887 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 Dparameter-parsing-api.md48 int zend_parse_parameter(int flags, int arg_num, zval **arg, const char *spec, ...);

Completed in 288 milliseconds

12