cvs: ZendEngine2 / zend_API.c
| From: | Sara Golemon | Date: | Fri, 13 Jul 2007 23:51:51 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5904@lists.php.net to get a copy of this message | ||
pollita Fri Jul 13 23:51:51 2007 UTC
Modified files:
/ZendEngine2 zend_API.c
Log:
Wrong function name in error message
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.438&r2=1.439&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.438 ZendEngine2/zend_API.c:1.439
--- ZendEngine2/zend_API.c:1.438 Thu Jul 12 09:23:47 2007
+++ ZendEngine2/zend_API.c Fri Jul 13 23:51:51 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.438 2007/07/12 09:23:47 dmitry Exp $ */
+/* $Id: zend_API.c,v 1.439 2007/07/13 23:51:51 pollita Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -2028,7 +2028,7 @@
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);
}