diff options
author | Dejan Marjanovic <dm@php.net> | 2015-02-03 17:04:52 +0100 |
---|---|---|
committer | Dejan Marjanovic <dm@php.net> | 2015-02-03 17:04:52 +0100 |
commit | 836dcb1da7647b971a86208fecbe04fa5a6f5725 (patch) | |
tree | 727cf69e4608acd2d4908130b70c7fe760697191 /Zend/zend_API.c | |
parent | feef180e6c7eef8f7345d1a823d62e219e6b35e3 (diff) | |
download | php-git-836dcb1da7647b971a86208fecbe04fa5a6f5725.tar.gz |
Rename __callstatic (internal name) to __callStatic (userland name) in error message
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 440e96d311..96824399e7 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1911,9 +1911,9 @@ ZEND_API void zend_check_magic_method_implementation(const zend_class_entry *ce, !memcmp(lcname, ZEND_CALLSTATIC_FUNC_NAME, sizeof(ZEND_CALLSTATIC_FUNC_NAME)-1) ) { if (fptr->common.num_args != 2) { - zend_error(error_type, "Method %s::%s() must take exactly 2 arguments", ce->name->val, ZEND_CALLSTATIC_FUNC_NAME); + zend_error(error_type, "Method %s::__callStatic() must take exactly 2 arguments", ce->name->val); } else if (ARG_SHOULD_BE_SENT_BY_REF(fptr, 1) || ARG_SHOULD_BE_SENT_BY_REF(fptr, 2)) { - zend_error(error_type, "Method %s::%s() cannot take arguments by reference", ce->name->val, ZEND_CALLSTATIC_FUNC_NAME); + zend_error(error_type, "Method %s::__callStatic() cannot take arguments by reference", ce->name->val); } } else if (name_len == sizeof(ZEND_TOSTRING_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_args != 0 |