mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed error messages
This commit is contained in:
parent
c8663929a2
commit
008a42e7c8
2 changed files with 3 additions and 3 deletions
|
@ -647,7 +647,7 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
|
|||
if (ce_base) {
|
||||
if ((!*pce || !instanceof_function(*pce, ce_base TSRMLS_CC))) {
|
||||
zend_spprintf(error, 0, "to be a class name derived from %s, '%s' given",
|
||||
ce_base->name, Z_STRVAL_P(arg));
|
||||
ce_base->name->val, Z_STRVAL_P(arg));
|
||||
*pce = NULL;
|
||||
return "";
|
||||
}
|
||||
|
@ -2768,7 +2768,7 @@ static int zend_is_callable_check_class(zend_string *name, zend_fcall_info_cache
|
|||
*strict_class = 1;
|
||||
ret = 1;
|
||||
} else {
|
||||
if (error) zend_spprintf(error, 0, "class '%.*s' not found", name_len, name);
|
||||
if (error) zend_spprintf(error, 0, "class '%.*s' not found", name_len, name->val);
|
||||
}
|
||||
efree(lcname);
|
||||
return ret;
|
||||
|
|
|
@ -815,7 +815,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
|
|||
|
||||
if (EX(function_state).function->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) {
|
||||
if (EX(function_state).function->common.fn_flags & ZEND_ACC_ABSTRACT) {
|
||||
zend_error_noreturn(E_ERROR, "Cannot call abstract method %s::%s()", EX(function_state).function->common.scope->name, EX(function_state).function->common.function_name);
|
||||
zend_error_noreturn(E_ERROR, "Cannot call abstract method %s::%s()", EX(function_state).function->common.scope->name->val, EX(function_state).function->common.function_name->val);
|
||||
}
|
||||
if (EX(function_state).function->common.fn_flags & ZEND_ACC_DEPRECATED) {
|
||||
zend_error(E_DEPRECATED, "Function %s%s%s() is deprecated",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue