From: Marcus Boerger Date: Sat, 2 Aug 2003 14:22:18 +0000 (+0000) Subject: Show interfaces X-Git-Tag: BEFORE_ARG_INFO~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04c90c8738f80f6a92c722f64606826f310a22b6;p=php Show interfaces --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 8cd8e104e3..af5286c891 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.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 */ 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 */