]> granicus.if.org Git - php/commitdiff
This test is against interfaces not abstract classes.
authorMarcus Boerger <helly@php.net>
Sat, 6 Dec 2003 19:02:12 +0000 (19:02 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 6 Dec 2003 19:02:12 +0000 (19:02 +0000)
Zend/zend_compile.c

index 1cae6eab5f57b92bc64e1f119fc295d67c63d228..d121d677d050cea106127124775163a29c67dcec 100644 (file)
@@ -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);
        }
 }