From 04c90c8738f80f6a92c722f64606826f310a22b6 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 2 Aug 2003 14:22:18 +0000 Subject: Show interfaces --- ext/reflection/php_reflection.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') 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 */ -- cgit v1.2.1