summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-09-18 10:21:38 +0000
committerMarcus Boerger <helly@php.net>2003-09-18 10:21:38 +0000
commit87045df4ce1137b7604ed9a767b78eeaebe79b5e (patch)
tree9c52e47ef202ca7baf772945d6a74fa6e3fa1c7e /Zend/zend_API.c
parent1433d789a513c43e1f2002c6dfad3c90c8bb2db3 (diff)
downloadphp-git-87045df4ce1137b7604ed9a767b78eeaebe79b5e.tar.gz
Add missing check
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 136f48a022..b616b2fca7 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1234,6 +1234,10 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
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);