diff options
author | Hannes Magnusson <bjori@php.net> | 2008-11-14 19:22:43 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2008-11-14 19:22:43 +0000 |
commit | dd9e9f26e2e30175de7f750e143bdebc3daca008 (patch) | |
tree | 0a4bcd98a1248de5c74e529f079f09e9f06cbac2 /ext/reflection | |
parent | ccef11d68ffc9fbc5152680d9cd6aded9438e62e (diff) | |
download | php-git-dd9e9f26e2e30175de7f750e143bdebc3daca008.tar.gz |
MFH: Interfaces extend other interfaces, not implement
Diffstat (limited to 'ext/reflection')
-rw-r--r-- | ext/reflection/php_reflection.c | 6 |
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); } |