- Fix function flag check

This commit is contained in:
Marcus Boerger 2006-06-04 10:23:25 +00:00
parent 9b70699617
commit 45c1713762

View File

@ -2112,7 +2112,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;
}
}
if (ptr->flags & ZEND_ACC_STATIC && (!scope || (scope->ce_flags & ZEND_ACC_INTERFACE))) {
if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) {
zend_error(error_type, "Static function %s%s%s() cannot be abstract", scope ? scope->name.s : "", scope ? "::" : "", ptr->fname);
}
} else {