Lines Matching refs:num_args
215 int num_args = ZEND_CALL_NUM_ARGS(EG(current_execute_data)); in zend_wrong_parameters_none_error() local
218 …_argument_count_error("%s() expects exactly 0 arguments, %d given", ZSTR_VAL(func_name), num_args); in zend_wrong_parameters_none_error()
226 uint32_t num_args = ZEND_CALL_NUM_ARGS(EG(current_execute_data)); in zend_wrong_parameters_count_error() local
232 min_num_args == max_num_args ? "exactly" : num_args < min_num_args ? "at least" : "at most", in zend_wrong_parameters_count_error()
233 num_args < min_num_args ? min_num_args : max_num_args, in zend_wrong_parameters_count_error()
234 (num_args < min_num_args ? min_num_args : max_num_args) == 1 ? "" : "s", in zend_wrong_parameters_count_error()
235 num_args in zend_wrong_parameters_count_error()
500 if (arg_offset >= func->common.num_args) { in zend_null_arg_deprecated()
502 arg_offset = func->common.num_args; in zend_null_arg_deprecated()
1143 static zend_result zend_parse_va_args(uint32_t num_args, const char *type_spec, va_list *va, int fl… in zend_parse_va_args() argument
1221 if (num_args < min_num_args || num_args > max_num_args) { in zend_parse_va_args()
1227 min_num_args == max_num_args ? "exactly" : num_args < min_num_args ? "at least" : "at most", in zend_parse_va_args()
1228 num_args < min_num_args ? min_num_args : max_num_args, in zend_parse_va_args()
1229 (num_args < min_num_args ? min_num_args : max_num_args) == 1 ? "" : "s", in zend_parse_va_args()
1230 num_args in zend_parse_va_args()
1238 if (num_args > ZEND_CALL_NUM_ARGS(EG(current_execute_data))) { in zend_parse_va_args()
1244 while (num_args-- > 0) { in zend_parse_va_args()
1250 uint32_t num_varargs = num_args + 1 - post_varargs; in zend_parse_va_args()
1261 num_args += 1 - num_varargs; in zend_parse_va_args()
1286 ZEND_API zend_result zend_parse_parameters_ex(int flags, uint32_t num_args, const char *type_spec, … in zend_parse_parameters_ex() argument
1292 retval = zend_parse_va_args(num_args, type_spec, &va, flags); in zend_parse_parameters_ex()
1299 ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...) /* {{{ */ in zend_parse_parameters() argument
1306 retval = zend_parse_va_args(num_args, type_spec, &va, flags); in zend_parse_parameters()
1313 ZEND_API zend_result zend_parse_method_parameters(uint32_t num_args, zval *this_ptr, const char *ty… in zend_parse_method_parameters() argument
1330 retval = zend_parse_va_args(num_args, type_spec, &va, flags); in zend_parse_method_parameters()
1346 retval = zend_parse_va_args(num_args, p, &va, flags); in zend_parse_method_parameters()
1353 ZEND_API zend_result zend_parse_method_parameters_ex(int flags, uint32_t num_args, zval *this_ptr, … in zend_parse_method_parameters_ex() argument
1363 retval = zend_parse_va_args(num_args, type_spec, &va, flags); in zend_parse_method_parameters_ex()
1382 retval = zend_parse_va_args(num_args, p, &va, flags); in zend_parse_method_parameters_ex()
2657 uint32_t num_args, const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_args() argument
2659 if (fptr->common.num_args != num_args) { in zend_check_magic_method_args()
2660 if (num_args == 0) { in zend_check_magic_method_args()
2663 } else if (num_args == 1) { in zend_check_magic_method_args()
2668 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), num_args); in zend_check_magic_method_args()
2672 for (uint32_t i = 0; i < num_args; i++) { in zend_check_magic_method_args()
2982 internal_function->num_args = ptr->num_args; in zend_register_functions()
2985 internal_function->required_num_args = ptr->num_args; in zend_register_functions()
2992 if (ZEND_ARG_IS_VARIADIC(&ptr->arg_info[ptr->num_args])) { in zend_register_functions()
2995 internal_function->num_args--; in zend_register_functions()
3012 internal_function->num_args = 0; in zend_register_functions()
3024 internal_function->num_args = internal_function->required_num_args = 0; in zend_register_functions()
3087 uint32_t num_args = reg_function->num_args; in zend_register_functions() local
3089 num_args++; in zend_register_functions()
3093 if (reg_function->arg_info && num_args) { in zend_register_functions()
3095 for (i = 0; i < num_args; i++) { in zend_register_functions()
3122 num_args++; in zend_register_functions()
3123 new_arg_info = malloc(sizeof(zend_internal_arg_info) * num_args); in zend_register_functions()
3124 memcpy(new_arg_info, arg_info, sizeof(zend_internal_arg_info) * num_args); in zend_register_functions()
3126 for (i = 0; i < num_args; i++) { in zend_register_functions()