From c1f302279f7d66f26458c26d27bba8700c4b515b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Schl=C3=BCter?= Date: Mon, 11 Sep 2006 21:21:27 +0000 Subject: [PATCH] - Print the type of the original value --- ext/reflection/php_reflection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 9781547c69..224c947ece 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -530,9 +530,12 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in /* {{{ _const_string */ static void _const_string(string *str, char *name, zval *value, char *indent TSRMLS_DC) { + char *type; zval value_copy; int use_copy; + type = zend_zval_type_name(value); + zend_make_printable_zval(value, &value_copy, &use_copy); if (use_copy) { value = &value_copy; @@ -540,7 +543,7 @@ static void _const_string(string *str, char *name, zval *value, char *indent TSR string_printf(str, "%s Constant [ %s %v ] { %s }\n", indent, - zend_zval_type_name(value), + type, name, Z_STRVAL_P(value)); -- 2.50.1