Lines Matching refs:arg_num
360 …STCALL zend_argument_error_variadic(zend_class_entry *error_ce, uint32_t arg_num, const char *form… in zend_argument_error_variadic() argument
370 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()
382 ZEND_API ZEND_COLD void zend_argument_error(zend_class_entry *error_ce, uint32_t arg_num, const cha… in zend_argument_error() argument
387 zend_argument_error_variadic(error_ce, arg_num, format, va); in zend_argument_error()
392 ZEND_API ZEND_COLD void zend_argument_type_error(uint32_t arg_num, const char *format, ...) /* {{{ … in zend_argument_type_error() argument
397 zend_argument_error_variadic(zend_ce_type_error, arg_num, format, va); in zend_argument_type_error()
402 ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *format, ...) /* {{{… in zend_argument_value_error() argument
407 zend_argument_error_variadic(zend_ce_value_error, arg_num, format, va); in zend_argument_value_error()
441 static ZEND_COLD bool zend_null_arg_deprecated(const char *fallback_type, uint32_t arg_num) { in zend_null_arg_deprecated() argument
443 ZEND_ASSERT(arg_num > 0); in zend_null_arg_deprecated()
444 uint32_t arg_offset = arg_num - 1; in zend_null_arg_deprecated()
452 const char *arg_name = get_active_function_arg_name(arg_num); in zend_null_arg_deprecated()
460 ZSTR_VAL(func_name), arg_num, in zend_null_arg_deprecated()
470 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_weak(zval *arg, bool *dest, uint32_t arg_num) /* {{… in zend_parse_arg_bool_weak() argument
473 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("bool", arg_num)) { in zend_parse_arg_bool_weak()
484 ZEND_API bool ZEND_FASTCALL zend_parse_arg_bool_slow(zval *arg, bool *dest, uint32_t arg_num) /* {{… in zend_parse_arg_bool_slow() argument
489 return zend_parse_arg_bool_weak(arg, dest, arg_num); in zend_parse_arg_bool_slow()
493 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(zval *arg, zend_long *dest, uint32_t arg_num) … in zend_parse_arg_long_weak() argument
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()
550 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int", arg_num)) { in zend_parse_arg_long_weak()
563 ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_slow(zval *arg, zend_long *dest, uint32_t arg_num) … in zend_parse_arg_long_slow() argument
568 return zend_parse_arg_long_weak(arg, dest, arg_num); in zend_parse_arg_long_slow()
572 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(zval *arg, double *dest, uint32_t arg_num) /… in zend_parse_arg_double_weak() argument
591 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("float", arg_num)) { in zend_parse_arg_double_weak()
604 ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_slow(zval *arg, double *dest, uint32_t arg_num) /… in zend_parse_arg_double_slow() argument
612 return zend_parse_arg_double_weak(arg, dest, arg_num); in zend_parse_arg_double_slow()
616 ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow(zval *arg, zval **dest, uint32_t arg_num) /*… in zend_parse_arg_number_slow() argument
635 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int|float", arg_num)) { in zend_parse_arg_number_slow()
649 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_weak(zval *arg, zend_string **dest, uint32_t arg_num… in zend_parse_arg_str_weak() argument
652 if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("string", arg_num)) { in zend_parse_arg_str_weak()
674 ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_slow(zval *arg, zend_string **dest, uint32_t arg_num… in zend_parse_arg_str_slow() argument
679 return zend_parse_arg_str_weak(arg, dest, arg_num); in zend_parse_arg_str_slow()
683 …r_or_long_slow(zval *arg, zend_string **dest_str, zend_long *dest_long, uint32_t arg_num) /* {{{ */ in zend_parse_arg_str_or_long_slow() argument
688 if (zend_parse_arg_long_weak(arg, dest_long, arg_num)) { in zend_parse_arg_str_or_long_slow()
691 } else if (zend_parse_arg_str_weak(arg, dest_str, arg_num)) { in zend_parse_arg_str_or_long_slow()
700 …parse_arg_impl(zval *arg, va_list *va, const char **spec, char **error, uint32_t arg_num) /* {{{ */ in zend_parse_arg_impl() argument
733 if (!zend_parse_arg_long(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
748 if (!zend_parse_arg_double(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
758 if (!zend_parse_arg_number(arg, p, check_null, arg_num)) { in zend_parse_arg_impl()
768 if (!zend_parse_arg_string(arg, p, pl, check_null, arg_num)) { in zend_parse_arg_impl()
778 if (!zend_parse_arg_path(arg, p, pl, check_null, arg_num)) { in zend_parse_arg_impl()
792 if (!zend_parse_arg_path_str(arg, str, check_null, arg_num)) { in zend_parse_arg_impl()
806 if (!zend_parse_arg_str(arg, str, check_null, arg_num)) { in zend_parse_arg_impl()
821 if (!zend_parse_arg_bool(arg, p, is_null, check_null, arg_num)) { in zend_parse_arg_impl()
978 static zend_result zend_parse_arg(uint32_t arg_num, zval *arg, va_list *va, const char **spec, int … in zend_parse_arg() argument
983 expected_type = zend_parse_arg_impl(arg, va, spec, &error, arg_num); in zend_parse_arg()
991 zend_argument_value_error(arg_num, "%s", error); in zend_parse_arg()
993 zend_argument_type_error(arg_num, "%s", error); in zend_parse_arg()
997 …zend_argument_type_error(arg_num, "must be of type %s, %s given", expected_type, zend_zval_type_na… in zend_parse_arg()
1010 ZEND_API zend_result zend_parse_parameter(int flags, uint32_t arg_num, zval *arg, const char *spec,… in zend_parse_parameter() argument
1016 ret = zend_parse_arg(arg_num, arg, &va, &spec, flags); in zend_parse_parameter()
2437 static void zend_check_magic_method_arg_type(uint32_t arg_num, const zend_class_entry *ce, const ze… in zend_check_magic_method_arg_type() argument
2440 ZEND_TYPE_IS_SET(fptr->common.arg_info[arg_num].type) in zend_check_magic_method_arg_type()
2441 && !(ZEND_TYPE_FULL_MASK(fptr->common.arg_info[arg_num].type) & arg_type) in zend_check_magic_method_arg_type()
2445 arg_num + 1, ZSTR_VAL(fptr->common.arg_info[arg_num].name), in zend_check_magic_method_arg_type()