From: Antony Dovgal Date: Fri, 2 Feb 2007 12:51:37 +0000 (+0000) Subject: -exactly 1 arguments X-Git-Tag: RELEASE_1_0_0RC1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92bf7d987280e8b9de717b352fc64f85432ff2b5;p=php -exactly 1 arguments +exactly 1 argument --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 504d358bef..199d1d50dc 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1964,10 +1964,10 @@ 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_SET_FUNC_NAME); } else if (lcname_len == sizeof(ZEND_UNSET_FUNC_NAME) - 1 && ZEND_U_EQUAL(utype, lcname, lcname_len, ZEND_UNSET_FUNC_NAME, sizeof(ZEND_UNSET_FUNC_NAME)-1) && fptr->common.num_args != 1) { - zend_error(error_type, "Method %v::%s() must take exactly 1 arguments", ce->name, ZEND_UNSET_FUNC_NAME); + zend_error(error_type, "Method %v::%s() must take exactly 1 argument", ce->name, ZEND_UNSET_FUNC_NAME); } else if (lcname_len == sizeof(ZEND_ISSET_FUNC_NAME) - 1 && ZEND_U_EQUAL(utype, lcname, lcname_len, ZEND_ISSET_FUNC_NAME, sizeof(ZEND_ISSET_FUNC_NAME)-1) && fptr->common.num_args != 1) { - zend_error(error_type, "Method %v::%s() must take exactly 1 arguments", ce->name, ZEND_ISSET_FUNC_NAME); + zend_error(error_type, "Method %v::%s() must take exactly 1 argument", ce->name, ZEND_ISSET_FUNC_NAME); } else if (lcname_len == sizeof(ZEND_CALL_FUNC_NAME) - 1 && ZEND_U_EQUAL(utype, lcname, lcname_len, ZEND_CALL_FUNC_NAME, sizeof(ZEND_CALL_FUNC_NAME)-1) && fptr->common.num_args != 2) { zend_error(error_type, "Method %v::%s() must take exactly 2 arguments", ce->name, ZEND_CALL_FUNC_NAME);