summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-06 19:02:12 +0000
committerMarcus Boerger <helly@php.net>2003-12-06 19:02:12 +0000
commit8a8deee8a01956bc276f91a8fd5f9561691891a9 (patch)
tree4222d6e1ccc5186d62ad3fb9044d4c037d96068a /Zend/zend_compile.c
parent30af3ba5236e5a029f0e7f2dd3a8a2cc778bc3c9 (diff)
downloadphp-git-8a8deee8a01956bc276f91a8fd5f9561691891a9.tar.gz
This test is against interfaces not abstract classes.
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 1cae6eab5f..d121d677d0 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1829,7 +1829,7 @@ static zend_bool do_inherit_property_access_check(HashTable *target_ht, zend_pro
static inline void do_implement_interface(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC)
{
- if (!(ce->ce_flags & ZEND_ACC_ABSTRACT) && iface->interface_gets_implemented && iface->interface_gets_implemented(iface, ce TSRMLS_CC) == FAILURE) {
+ if (!(ce->ce_flags & ZEND_ACC_INTERFACE) && iface->interface_gets_implemented && iface->interface_gets_implemented(iface, ce TSRMLS_CC) == FAILURE) {
zend_error(E_CORE_ERROR, "Class %s could not implement interface %s", ce->name, iface->name);
}
}