mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Change argument error message format
Closes GH-5211
This commit is contained in:
parent
c7094d8926
commit
960318ed95
357 changed files with 1168 additions and 1158 deletions
|
@ -1388,7 +1388,7 @@ ZEND_FUNCTION(set_error_handler)
|
|||
if (Z_TYPE_P(error_handler) != IS_NULL) { /* NULL == unset */
|
||||
if (!zend_is_callable(error_handler, 0, NULL)) {
|
||||
zend_string *error_handler_name = zend_get_callable_name(error_handler);
|
||||
zend_error(E_WARNING, "%s() expects argument #1 ($error_handler) to be a valid callback", get_active_function_name());
|
||||
zend_error(E_WARNING, "%s(): Argument #1 ($error_handler) must be a valid callback", get_active_function_name());
|
||||
zend_string_release_ex(error_handler_name, 0);
|
||||
return;
|
||||
}
|
||||
|
@ -1452,7 +1452,7 @@ ZEND_FUNCTION(set_exception_handler)
|
|||
if (Z_TYPE_P(exception_handler) != IS_NULL) { /* NULL == unset */
|
||||
if (!zend_is_callable(exception_handler, 0, NULL)) {
|
||||
zend_string *exception_handler_name = zend_get_callable_name(exception_handler);
|
||||
zend_error(E_WARNING, "%s() expects argument #1 ($exception_handler) to be a valid callback", get_active_function_name());
|
||||
zend_error(E_WARNING, "%s(): Argument #1 ($exception_handler) must be a valid callback", get_active_function_name());
|
||||
zend_string_release_ex(exception_handler_name, 0);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue