summaryrefslogtreecommitdiff
path: root/ext/dba
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-12-01 01:25:36 +0000
committerfoobar <sniper@php.net>2000-12-01 01:25:36 +0000
commit744f1a34ef2be0a810c082bafcc4f207a4242187 (patch)
treeb4a585004e5f4691aaec8f3e10e7d606c2089301 /ext/dba
parent6cdc90bae3b82eecb408ee191eec830968ae1d51 (diff)
downloadphp-git-744f1a34ef2be0a810c082bafcc4f207a4242187.tar.gz
Beautifying of phpinfo().
Diffstat (limited to 'ext/dba')
-rw-r--r--ext/dba/dba.c20
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)
{