summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/php_odbc.c11
-rw-r--r--ext/odbc/velocis.c5
2 files changed, 10 insertions, 6 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index c7abe1b036..5b884049f7 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -435,10 +435,8 @@ PHP_MINFO_FUNCTION(odbc)
char buf[32];
ODBCLS_FETCH();
- DISPLAY_INI_ENTRIES();
-
- php_printf("<table border=5 width=\"600\">");
- php_info_print_table_header(2, "Key", "Value");
+ php_info_print_table_start();
+ php_info_print_table_header(2, "ODBC Support", "enabled");
sprintf(buf, "%ld", ODBCG(num_persistent));
php_info_print_table_row(2, "Active Persistent Links", buf);
sprintf(buf, "%ld", ODBCG(num_links));
@@ -449,7 +447,10 @@ PHP_MINFO_FUNCTION(odbc)
php_info_print_table_row(2, "ODBC_LFLAGS", PHP_ODBC_LFLAGS);
php_info_print_table_row(2, "ODBC_LIBS", PHP_ODBC_LIBS);
#endif
- php_printf("</table>\n");
+ php_info_print_table_end();
+
+ DISPLAY_INI_ENTRIES();
+
}
#if defined ( HAVE_IBMDB2 ) || defined ( HAVE_UNIXODBC )
diff --git a/ext/odbc/velocis.c b/ext/odbc/velocis.c
index faf53bc624..70d7b958dc 100644
--- a/ext/odbc/velocis.c
+++ b/ext/odbc/velocis.c
@@ -42,6 +42,7 @@
#ifdef HAVE_VELOCIS
#include "php_velocis.h"
+#include "ext/standard/info.h"
function_entry velocis_functions[] = {
PHP_FE(velocis_connect, NULL)
@@ -115,7 +116,9 @@ PHP_RINIT_FUNCTION(velocis)
PHP_MINFO_FUNCTION(velocis)
{
- php_printf("RAIMA Velocis Support Active");
+ php_info_print_table_start();
+ php_info_print_table_row(2, "RAIMA Velocis Support", "enabled" );
+ php_info_print_table_end();
}
PHP_MSHUTDOWN_FUNCTION(velocis)