Created
December 9, 2019 10:03
Revisions
-
dstogov created this gist
Dec 9, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index d669ff6da2..f36e44148f 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4581,6 +4581,11 @@ ZEND_METHOD(reflection_class, getModifiers) } GET_REFLECTION_OBJECT_PTR(ce); + if (ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) { + /* Don't keep "implicit" flag if not necessary */ + keep_flags &= ~ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; + } + RETURN_LONG((ce->ce_flags & keep_flags)); } /* }}} */