cvs: ZendEngine2 / zend_execute_API.c
| From: | Marcus Boerger | Date: | Mon, 08 Mar 2004 16:52:59 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2453@lists.php.net to get a copy of this message | ||
helly Mon Mar 8 11:52:59 2004 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
Check count.
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.272&r2=1.273&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.272 ZendEngine2/zend_execute_API.c:1.273
--- ZendEngine2/zend_execute_API.c:1.272 Mon Mar 1 08:29:45 2004
+++ ZendEngine2/zend_execute_API.c Mon Mar 8 11:52:59 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.272 2004/03/01 13:29:45 andi Exp $ */
+/* $Id: zend_execute_API.c,v 1.273 2004/03/08 16:52:59 helly Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -1229,13 +1229,15 @@
memset(&ai, 0, sizeof(ai));
zend_hash_apply_with_argument(&ce->function_table, (apply_func_arg_t)
zend_verify_abstract_class_function, &ai TSRMLS_CC);
-
- 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 ")",
- ce->name, ai.cnt,
- DISPLAY_ABSTRACT_FN(0),
- DISPLAY_ABSTRACT_FN(1),
- DISPLAY_ABSTRACT_FN(2)
- );
+
+ 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 ")",
+ ce->name, ai.cnt,
+ DISPLAY_ABSTRACT_FN(0),
+ DISPLAY_ABSTRACT_FN(1),
+ DISPLAY_ABSTRACT_FN(2)
+ );
+ }
}
}