diff options
author | Marcus Boerger <helly@php.net> | 2005-08-29 22:11:53 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-08-29 22:11:53 +0000 |
commit | 51e3db28eac41d46d89f562f67e0080e5bb2d88b (patch) | |
tree | 9639ad13e14c39a360366c76826e8337bd6e2a15 /Zend/zend_reflection_api.c | |
parent | f3b177eb30d79a640a303e881e2d9e8082feb45c (diff) | |
download | php-git-51e3db28eac41d46d89f562f67e0080e5bb2d88b.tar.gz |
- Fix #34299: ReflectionClass::isInstantiable() returns true for abstract classes
Diffstat (limited to 'Zend/zend_reflection_api.c')
-rw-r--r-- | Zend/zend_reflection_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index b38c137cf4..897a3ec1e4 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -2926,7 +2926,7 @@ ZEND_METHOD(reflection_class, isInstantiable) METHOD_NOTSTATIC_NUMPARAMS(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_EXPLICIT_ABSTRACTCLASS | ZEND_ACC_IMPLICIT_ABSTRACT_CLASS)) { RETURN_FALSE; } |