From: Marcus Boerger Date: Fri, 17 Oct 2003 08:15:48 +0000 (+0000) Subject: Fix showing final/abstract for classes X-Git-Tag: RELEASE_1_3b3~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43a948379a1cdd7f7b955ccf9c4827fb580ef590;p=php Fix showing final/abstract for classes --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 0b67182b99..34695fd49e 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -260,10 +260,10 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in string_printf(str, "%s%s [ ", indent, (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : "Class"); } string_printf(str, (ce->type == ZEND_USER_CLASS) ? " " : " "); - if (ce->ce_flags & ZEND_ACC_ABSTRACT) { + if (ce->ce_flags & ZEND_ACC_ABSTRACT_CLASS) { string_printf(str, "abstract "); } - if (ce->ce_flags & ZEND_ACC_FINAL) { + if (ce->ce_flags & ZEND_ACC_FINAL_CLASS) { string_printf(str, "final "); } string_printf(str, (ce->ce_flags & ZEND_ACC_INTERFACE) ? "interface " : "class "); diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 0b67182b99..34695fd49e 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -260,10 +260,10 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in string_printf(str, "%s%s [ ", indent, (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : "Class"); } string_printf(str, (ce->type == ZEND_USER_CLASS) ? " " : " "); - if (ce->ce_flags & ZEND_ACC_ABSTRACT) { + if (ce->ce_flags & ZEND_ACC_ABSTRACT_CLASS) { string_printf(str, "abstract "); } - if (ce->ce_flags & ZEND_ACC_FINAL) { + if (ce->ce_flags & ZEND_ACC_FINAL_CLASS) { string_printf(str, "final "); } string_printf(str, (ce->ce_flags & ZEND_ACC_INTERFACE) ? "interface " : "class ");