mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
Fix showing final/abstract for classes
This commit is contained in:
parent
4943cae926
commit
43a948379a
@ -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 ");
|
||||
|
@ -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 ");
|
||||
|
Loading…
Reference in New Issue
Block a user