mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
- Fixed bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters)
This commit is contained in:
parent
e3be1e0bea
commit
c9fc939be0
3 changed files with 24 additions and 3 deletions
|
@ -721,7 +721,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
|
|||
zend_error(E_WARNING, "%s%s%s(): only one varargs specifier (* or +) is permitted",
|
||||
class_name,
|
||||
class_name[0] ? "::" : "",
|
||||
get_active_function_name(TSRMLS_C));
|
||||
active_function->common.function_name);
|
||||
}
|
||||
return FAILURE;
|
||||
}
|
||||
|
@ -741,7 +741,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
|
|||
zend_error(E_WARNING, "%s%s%s(): bad type specifier while parsing parameters",
|
||||
class_name,
|
||||
class_name[0] ? "::" : "",
|
||||
get_active_function_name(TSRMLS_C));
|
||||
active_function->common.function_name);
|
||||
}
|
||||
return FAILURE;
|
||||
}
|
||||
|
@ -764,7 +764,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
|
|||
zend_error(E_WARNING, "%s%s%s() expects %s %d parameter%s, %d given",
|
||||
class_name,
|
||||
class_name[0] ? "::" : "",
|
||||
get_active_function_name(TSRMLS_C),
|
||||
active_function->common.function_name,
|
||||
min_num_args == max_num_args ? "exactly" : num_args < min_num_args ? "at least" : "at most",
|
||||
num_args < min_num_args ? min_num_args : max_num_args,
|
||||
(num_args < min_num_args ? min_num_args : max_num_args) == 1 ? "" : "s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue