cvs: php-src /ext/iconv iconv.c
| From: | Antony Dovgal | Date: | Thu, 08 Sep 2005 11:48:09 +0000 |
| Subject: | cvs: php-src /ext/iconv iconv.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33858@lists.php.net to get a copy of this message | ||
tony2001 Thu Sep 8 07:48:09 2005 EDT
Modified files:
/php-src/ext/iconv iconv.c
Log:
fix phpinfo() output for iconv extension
(convert unicode values to string before outputting them)
http://cvs.php.net/diff.php/php-src/ext/iconv/iconv.c?r1=1.125&r2=1.126&ty=u
Index: php-src/ext/iconv/iconv.c
diff -u php-src/ext/iconv/iconv.c:1.125 php-src/ext/iconv/iconv.c:1.126
--- php-src/ext/iconv/iconv.c:1.125 Thu Aug 11 19:35:53 2005
+++ php-src/ext/iconv/iconv.c Thu Sep 8 07:48:07 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: iconv.c,v 1.125 2005/08/11 23:35:53 andrei Exp $ */
+/* $Id: iconv.c,v 1.126 2005/09/08 11:48:07 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -216,6 +216,9 @@
zend_get_constant("ICONV_IMPL", sizeof("ICONV_IMPL")-1, &iconv_impl
TSRMLS_CC);
zend_get_constant("ICONV_VERSION", sizeof("ICONV_VERSION")-1, &iconv_ver
TSRMLS_CC);
+ convert_to_string(&iconv_impl);
+ convert_to_string(&iconv_ver);
+
php_info_print_table_start();
php_info_print_table_row(2, "iconv support", "enabled");
php_info_print_table_row(2, "iconv implementation", Z_STRVAL(iconv_impl));