1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

This test is against interfaces not abstract classes.

This commit is contained in:
Marcus Boerger
2003-12-06 19:02:12 +00:00
parent 30af3ba523
commit 8a8deee8a0

View 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);
}
}