From: Sara Golemon Date: Fri, 13 Jul 2007 23:51:51 +0000 (+0000) Subject: Wrong function name in error message X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06bad726a26566417f70e602db5fbd618ed6b103;p=php Wrong function name in error message --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 32edb49ee6..22a452ffdd 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2028,7 +2028,7 @@ ZEND_API void zend_check_magic_method_implementation(zend_class_entry *ce, zend_ zend_error(error_type, "Method %v::%s() must take exactly 2 arguments", ce->name, ZEND_CALL_FUNC_NAME); } else if (lcname_len == sizeof(ZEND_TOSTRING_FUNC_NAME) - 1 && ZEND_U_EQUAL(utype, lcname, lcname_len, ZEND_TOSTRING_FUNC_NAME, sizeof(ZEND_TOSTRING_FUNC_NAME)-1) && fptr->common.num_args != 0) { - zend_error(error_type, "Method %v::%s() cannot take arguments", ce->name, ZEND_CALL_FUNC_NAME); + zend_error(error_type, "Method %v::%s() cannot take arguments", ce->name, ZEND_TOSTRING_FUNC_NAME); } efree(lcname.v); }