- MFH ReflectionClass::isInstantiable and abstract classes

This commit is contained in:
Marcus Boerger 2005-10-06 22:46:33 +00:00
parent abe0e61801
commit dec65f584b
2 changed files with 2 additions and 2 deletions

View File

@ -2900,7 +2900,7 @@ ZEND_METHOD(reflection_class, isInstantiable)
METHOD_NOTSTATIC_NUMPARAMS(reflection_class_ptr, 0);
GET_REFLECTION_OBJECT_PTR(ce);
if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_ABSTRACT)) {
if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_IMPLICIT_ABSTRACT_CLASS | ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) {
RETURN_FALSE;
}

View File

@ -2900,7 +2900,7 @@ ZEND_METHOD(reflection_class, isInstantiable)
METHOD_NOTSTATIC_NUMPARAMS(reflection_class_ptr, 0);
GET_REFLECTION_OBJECT_PTR(ce);
if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_ABSTRACT)) {
if (ce->ce_flags & (ZEND_ACC_INTERFACE | ZEND_ACC_IMPLICIT_ABSTRACT_CLASS | ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) {
RETURN_FALSE;
}