mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
- MFH ReflectionClass::isInstantiable and abstract classes
This commit is contained in:
parent
abe0e61801
commit
dec65f584b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user