diff options
author | Marcus Boerger <helly@php.net> | 2003-08-02 14:22:18 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-08-02 14:22:18 +0000 |
commit | 04c90c8738f80f6a92c722f64606826f310a22b6 (patch) | |
tree | e689c60c45c3ff0dd1224343294335016ae4ad73 /ext/reflection/php_reflection.c | |
parent | 54df2e14b46a90fcb93707baaf8b1a97e620d210 (diff) | |
download | php-git-04c90c8738f80f6a92c722f64606826f310a22b6.tar.gz |
Show interfaces
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 8cd8e104e3..af5286c891 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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 */ |