From a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Thu, 6 Apr 2000 21:07:44 +0000 Subject: phpinfo() prettying --- ext/oracle/oracle.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'ext/oracle/oracle.c') diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c index 9cd96c6938..35dcb98b36 100644 --- a/ext/oracle/oracle.c +++ b/ext/oracle/oracle.c @@ -38,6 +38,8 @@ #include "php_oracle.h" #define HASH_DTOR (void (*)(void *)) +#include "ext/standard/info.h" + #ifdef WIN32 # include "variables.h" #else @@ -1511,12 +1513,16 @@ PHP_FUNCTION(ora_errorcode) PHP_MINFO_FUNCTION(oracle) { + + php_info_print_table_start(); + php_info_print_table_row(2, "Oracle Support", "enabled"); + #ifndef PHP_WIN32 - php_printf("Oracle version: %s
\n" - "Compile-time ORACLE_HOME: %s
\n" - "Libraries used: %s", - PHP_ORACLE_VERSION, PHP_ORACLE_HOME, PHP_ORACLE_LIBS); + php_info_print_table_row(2, "Oracle Version", PHP_ORACLE_VERSION ); + php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_ORACLE_HOME ); + php_info_print_table_row(2, "Libraries Used", PHP_ORACLE_LIBS ); #endif + php_info_print_table_end(); } -- cgit v1.2.1