cvs: ZendEngine2 / zend_API.c
| From: | Marcus Boerger | Date: | Thu, 18 Sep 2003 10:21:38 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1845@lists.php.net to get a copy of this message | ||
helly Thu Sep 18 06:21:38 2003 EDT
Modified files:
/ZendEngine2 zend_API.c
Log:
Add missing check
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.217 ZendEngine2/zend_API.c:1.218
--- ZendEngine2/zend_API.c:1.217 Thu Sep 4 12:00:01 2003
+++ ZendEngine2/zend_API.c Thu Sep 18 06:21:38 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.217 2003/09/04 16:00:01 helly Exp $ */
+/* $Id: zend_API.c,v 1.218 2003/09/18 10:21:38 helly Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -1234,6 +1234,10 @@
scope->ce_flags |= ZEND_ACC_ABSTRACT;
}
} else {
+ if (scope && scope->ce_flags&ZEND_ACC_INTERFACE) {
+ zend_error(error_type, "Interface %s cannot contain non abstract method %s()",
scope->name, ptr->fname);
+ return FAILURE;
+ }
if (!internal_function->handler) {
zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ?
scope->name : "", scope ? "::" : "", ptr->fname);
zend_unregister_functions(functions, count, target_function_table TSRMLS_CC);