Show interfaces

This commit is contained in:
Marcus Boerger 2003-08-02 14:22:18 +00:00
parent 54df2e14b4
commit 04c90c8738
2 changed files with 16 additions and 2 deletions

View file

@ -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 */