]> granicus.if.org Git - php/commitdiff
Fix showing final/abstract for classes
authorMarcus Boerger <helly@php.net>
Fri, 17 Oct 2003 08:15:48 +0000 (08:15 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 17 Oct 2003 08:15:48 +0000 (08:15 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 0b67182b99db17dcf389c883663ef183b9ca4606..34695fd49e2ac3db3b551bb5f0fac62260022783 100644 (file)
@@ -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 ");
index 0b67182b99db17dcf389c883663ef183b9ca4606..34695fd49e2ac3db3b551bb5f0fac62260022783 100644 (file)
@@ -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 ");