summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-10-17 08:15:48 +0000
committerMarcus Boerger <helly@php.net>2003-10-17 08:15:48 +0000
commit43a948379a1cdd7f7b955ccf9c4827fb580ef590 (patch)
tree4415cf0477566dad10bfc8fa7c4e9b9100b679ed
parent4943cae9262953de09ca2bab25f3b12978d9a910 (diff)
downloadphp-git-43a948379a1cdd7f7b955ccf9c4827fb580ef590.tar.gz
Fix showing final/abstract for classes
-rw-r--r--Zend/zend_reflection_api.c4
-rw-r--r--ext/reflection/php_reflection.c4
2 files changed, 4 insertions, 4 deletions
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) ? "<user> " : "<internal> ");
- 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) ? "<user> " : "<internal> ");
- 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 ");