Skip to content

Commit

Permalink
fixed info table
Browse files Browse the repository at this point in the history
  • Loading branch information
duguying committed May 14, 2016
1 parent af31252 commit 3bca3ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pinyin.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ PHP_MINFO_FUNCTION(pinyin)
php_info_print_table_header(2, "pinyin support", "enabled");
php_info_print_table_row(2, "author", "Rex Lee");
php_info_print_table_row(2, "version", "0.5.0");
php_info_print_table_row(2, "pinyin.words", INI_STR("pinyin.words"));
php_info_print_table_row(2, "pinyin.chars", INI_STR("pinyin.chars"));
php_info_print_table_row(2, "pinyin.words", (!access(INI_STR("pinyin.words"), 4))?INI_STR("pinyin.words"):"error");
php_info_print_table_row(2, "pinyin.chars", (!access(INI_STR("pinyin.chars"), 4))?INI_STR("pinyin.chars"):"error");
php_info_print_table_row(2, "pinyin.locale", (strlen(INI_STR("pinyin.locale"))>0)?INI_STR("pinyin.locale"):"zh_CN.UTF-8");
php_info_print_table_row(2, "function", "string pinyin(string)");
php_info_print_table_end();

Expand Down

0 comments on commit 3bca3ce

Please sign in to comment.