From: Marcus Boerger Date: Sat, 6 Dec 2003 19:02:12 +0000 (+0000) Subject: This test is against interfaces not abstract classes. X-Git-Tag: php-5.0.0b3RC1~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a8deee8a01956bc276f91a8fd5f9561691891a9;p=php This test is against interfaces not abstract classes. --- 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); } }