summaryrefslogtreecommitdiff
path: root/ext/reflection
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2008-11-14 19:22:43 +0000
committerHannes Magnusson <bjori@php.net>2008-11-14 19:22:43 +0000
commitdd9e9f26e2e30175de7f750e143bdebc3daca008 (patch)
tree0a4bcd98a1248de5c74e529f079f09e9f06cbac2 /ext/reflection
parentccef11d68ffc9fbc5152680d9cd6aded9438e62e (diff)
downloadphp-git-dd9e9f26e2e30175de7f750e143bdebc3daca008.tar.gz
MFH: Interfaces extend other interfaces, not implement
Diffstat (limited to 'ext/reflection')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 7c08329130..5bedbe3540 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -371,7 +371,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 %s", ce->interfaces[0]->name);
+ if (ce->ce_flags & ZEND_ACC_INTERFACE) {
+ string_printf(str, " extends %s", ce->interfaces[0]->name);
+ } else {
+ 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);
}