]> granicus.if.org Git - php/commitdiff
Wrong function name in error message
authorSara Golemon <pollita@php.net>
Fri, 13 Jul 2007 23:51:51 +0000 (23:51 +0000)
committerSara Golemon <pollita@php.net>
Fri, 13 Jul 2007 23:51:51 +0000 (23:51 +0000)
Zend/zend_API.c

index 32edb49ee6eda3991a692bf9927b50756228ae89..22a452ffdd9b292ccaf9980cd41e4948bd96253e 100644 (file)
@@ -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);
 }