Skip to content

Commit 2fdb240

Browse files
committed
phpdbg: Call enums “Enum” in info classes
1 parent c630801 commit 2fdb240

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sapi/phpdbg/phpdbg_info.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,10 @@ PHPDBG_INFO(memory) /* {{{ */
374374
static inline void phpdbg_print_class_name(zend_class_entry *ce) /* {{{ */
375375
{
376376
const char *visibility = ce->type == ZEND_USER_CLASS ? "User" : "Internal";
377-
const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : (ce->ce_flags & ZEND_ACC_ABSTRACT) ? "Abstract Class" : "Class";
377+
const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface"
378+
: (ce->ce_flags & ZEND_ACC_ABSTRACT) ? "Abstract Class"
379+
: (ce->ce_flags & ZEND_ACC_ENUM) ? "Enum"
380+
: "Class";
378381

379382
phpdbg_writeln("%s %s %.*s (%d)", visibility, type, (int) ZSTR_LEN(ce->name), ZSTR_VAL(ce->name), zend_hash_num_elements(&ce->function_table));
380383
} /* }}} */

0 commit comments

Comments
 (0)