mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Show interfaces
This commit is contained in:
parent
54df2e14b4
commit
04c90c8738
2 changed files with 16 additions and 2 deletions
|
@ -247,7 +247,14 @@ static void _class_string(string *str, zend_class_entry *ce, char *indent TSRMLS
|
|||
if (ce->parent) {
|
||||
string_printf(str, " extends %s", ce->parent->name);
|
||||
}
|
||||
/* TBI: Interfaces */
|
||||
|
||||
if (ce->num_interfaces) {
|
||||
int i;
|
||||
string_printf(str, " implements %s", ce->interfaces[0]->name);
|
||||
for (i = 1; i < ce->num_interfaces; ++i) {
|
||||
string_printf(str, ", %s", ce->interfaces[i]->name);
|
||||
}
|
||||
}
|
||||
string_printf(str, " ] {\n");
|
||||
|
||||
/* The information where a class is declared is only available for user classes */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue