diff options
Diffstat (limited to 'ext/dba/dba.c')
-rw-r--r-- | ext/dba/dba.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index cc68f5c43b..ee8f7409d1 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -206,19 +206,23 @@ static PHP_MSHUTDOWN_FUNCTION(dba) return SUCCESS; } + static PHP_MINFO_FUNCTION(dba) { - /* could be prettier (cmv) */ dba_handler *hptr; - - php_info_print_box_start(0); - PUTS("V1 ($Id$)"); + static char handlers[80], tmp[5]; + for(hptr = handler; hptr->name; hptr++) { - PUTS(" "); - PUTS(hptr->name); - } - php_info_print_box_end(); + sprintf(tmp, "%s ", hptr->name); + strcat(handlers, tmp); + } + + php_info_print_table_start(); + php_info_print_table_row(2, "DBA support", "enabled"); + php_info_print_table_row(2, "Supported handlers", handlers); + php_info_print_table_end(); } + static void php_dba_update(INTERNAL_FUNCTION_PARAMETERS, int mode) { |