Browse Source

fix phpinfo() output for iconv extension

(convert unicode values to string before outputting them)
migration/RELEASE_1_0_0
Antony Dovgal 21 years ago
parent
commit
fb8258e8b7
  1. 3
      ext/iconv/iconv.c

3
ext/iconv/iconv.c

@ -216,6 +216,9 @@ PHP_MINFO_FUNCTION(miconv)
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));

Loading…
Cancel
Save