johannes Mon Sep 11 21:21:28 2006 UTC Modified files: /php-src/ext/reflection php_reflection.c Log: - Print the type of the original value http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.253&r2=1.254&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.253 php-src/ext/reflection/php_reflection.c:1.254 --- php-src/ext/reflection/php_reflection.c:1.253 Mon Sep 11 17:06:59 2006 +++ php-src/ext/reflection/php_reflection.c Mon Sep 11 21:21:27 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.253 2006/09/11 17:06:59 johannes Exp $ */ +/* $Id: php_reflection.c,v 1.254 2006/09/11 21:21:27 johannes Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -530,9 +530,12 @@ /* {{{ _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 @@ string_printf(str, "%s Constant [ %s %v ] { %s }\n", indent, - zend_zval_type_name(value), + type, name, Z_STRVAL_P(value)); @@ -4880,7 +4883,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Reflection", "enabled"); - php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.253 2006/09/11 17:06:59 johannes Exp $"); + php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.254 2006/09/11 21:21:27 johannes Exp $"); php_info_print_table_end(); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php