diff options
| author | Colin Viebrock <cmv@php.net> | 2000-04-06 21:07:44 +0000 |
|---|---|---|
| committer | Colin Viebrock <cmv@php.net> | 2000-04-06 21:07:44 +0000 |
| commit | a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a (patch) | |
| tree | 7178e45bc4ef17f47f744fd6c1517362734ded68 /ext/pdf/pdf.c | |
| parent | 56fc855afdde5270d9b6558734bd476669224e1d (diff) | |
| download | php-git-a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a.tar.gz | |
phpinfo() prettying
Diffstat (limited to 'ext/pdf/pdf.c')
| -rw-r--r-- | ext/pdf/pdf.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 1181d1e24a..918ba338c4 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -41,6 +41,7 @@ #include "php.h" #include "php_globals.h" #include "ext/standard/head.h" +#include "ext/standard/info.h" #include <math.h> @@ -235,13 +236,23 @@ PHP_MINIT_FUNCTION(pdf) return SUCCESS; } -PHP_MINFO_FUNCTION(pdf) { - /* need to use a PHPAPI function here because it is external module in windows */ - php_printf("pdflib %d.%02d<BR>", PDF_get_majorversion(), PDF_get_minorversion()); - php_printf("The CJK fonts supported."); +PHP_MINFO_FUNCTION(pdf) +{ + char tmp[32]; + + snprintf(tmp, 31, "%d.%02d", PDF_get_majorversion(), PDF_get_minorversion() ); + tmp[32]=0; + + php_info_print_table_start(); + php_info_print_table_row(2, "PDF Support", "enabled" ); + php_info_print_table_row(2, "PDFLib Version", tmp ); + php_info_print_table_row(2, "CJK Font Support", "yes" ); #ifdef PDF_OPEN_MEM_SUPPORTED - php_printf("Support for in memory pdf creation."); + php_info_print_table_row(2, "In-memory PDF Creation Support", "yes" ); +#else + php_info_print_table_row(2, "In-memory PDF Creation Support", "no" ); #endif + php_info_print_table_end(); } |
