cvs: ZendEngine2 / zend_execute_API.c
| From: | Marcus Boerger | Date: | Mon, 02 May 2005 15:55:06 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3630@lists.php.net to get a copy of this message | ||
helly Mon May 2 11:55:06 2005 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
- Part 1 of #30126: Enhancement for error message for abstract classes
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.315&r2=1.316&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.315 ZendEngine2/zend_execute_API.c:1.316
--- ZendEngine2/zend_execute_API.c:1.315 Fri Mar 25 21:43:02 2005
+++ ZendEngine2/zend_execute_API.c Mon May 2 11:55:05 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.315 2005/03/26 02:43:02 sniper Exp $ */
+/* $Id: zend_execute_API.c,v 1.316 2005/05/02 15:55:05 helly Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -1362,8 +1362,9 @@
zend_hash_apply_with_argument(&ce->function_table, (apply_func_arg_t)
zend_verify_abstract_class_function, &ai TSRMLS_CC);
if (ai.cnt) {
- zend_error(E_ERROR, "Class %s contains %d abstract methods and must therefore be declared
abstract (" MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT ")",
+ zend_error(E_ERROR, "Class %s contains %d abstract method%s and must therefore be declared
abstract (" MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT ")",
ce->name, ai.cnt,
+ ai.cnt > 1 ? "s" : "",
DISPLAY_ABSTRACT_FN(0),
DISPLAY_ABSTRACT_FN(1),
DISPLAY_ABSTRACT_FN(2)