From ee616e41ddf7e92162151ead92465e06a2060168 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Fri, 14 Nov 2008 19:22:09 +0000 Subject: [PATCH] Interfaces extend other interfaces, not implement --- ext/reflection/php_reflection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index b50e7bbc7c..7279aa0348 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -375,7 +375,11 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in if (ce->num_interfaces) { zend_uint i; - string_printf(str, " implements %v", ce->interfaces[0]->name); + if (ce->ce_flags & ZEND_ACC_INTERFACE) { + string_printf(str, " extends %v", ce->interfaces[0]->name); + } else { + string_printf(str, " implements %v", ce->interfaces[0]->name); + } for (i = 1; i < ce->num_interfaces; ++i) { string_printf(str, ", %v", ce->interfaces[i]->name); } -- 2.40.0