summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-09-16 19:31:45 +0000
committerMarcus Boerger <helly@php.net>2003-09-16 19:31:45 +0000
commitd2088841a4b696dc65aa4471f8c6c5d3c81512e9 (patch)
tree57e59fe503960e93758f15f68f67a502a5322a0a /ext/reflection/php_reflection.c
parentbe16d129c565875b3ed37b44fa7138a78c5cb3a4 (diff)
downloadphp-git-d2088841a4b696dc65aa4471f8c6c5d3c81512e9.tar.gz
- Make it clear whether it is an interface or a class
- Fix static properties
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index ee9f7a5dff..dcf8497076 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -257,7 +257,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in
if (obj) {
string_printf(str, "%sObject of class [ ", indent);
} else {
- string_printf(str, "%sClass [ ", indent);
+ string_printf(str, "%s%s [ ", indent, (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : "Class");
}
string_printf(str, (ce->type == ZEND_USER_CLASS) ? "<user> " : "<internal> ");
if (ce->ce_flags & ZEND_ACC_ABSTRACT) {
@@ -335,7 +335,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in
/* static properties */
string_printf(str, "\n%s - Static properties [%d] {\n", indent, count_static_props);
- if (count > 0) {
+ if (count_static_props > 0) {
HashPosition pos;
zend_property_info *prop;