diff options
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 */ |