diff options
author | Johannes Schlüter <johannes@php.net> | 2006-09-11 21:21:43 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2006-09-11 21:21:43 +0000 |
commit | 6415ef51e9f7527333fab66fe9fe5d9b9e7241ba (patch) | |
tree | e279a93beeee6835eddeec365e5655e2676d8011 /ext/reflection/php_reflection.c | |
parent | 4bb51d165a4dc561efce56d165ac797b0b7a8bbb (diff) | |
download | php-git-6415ef51e9f7527333fab66fe9fe5d9b9e7241ba.tar.gz |
- MFH: Print the type of the original value
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index bd63658c8b..bca4032f99 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -537,9 +537,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; @@ -547,7 +550,7 @@ static void _const_string(string *str, char *name, zval *value, char *indent TSR string_printf(str, "%s Constant [ %s %s ] { %s }\n", indent, - zend_zval_type_name(value), + type, name, Z_STRVAL_P(value)); |