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/oracle/oracle.c | |
parent | 56fc855afdde5270d9b6558734bd476669224e1d (diff) | |
download | php-git-a7c8bfb9fb2d20341181c3ab351fc436a4cc0e2a.tar.gz |
phpinfo() prettying
Diffstat (limited to 'ext/oracle/oracle.c')
-rw-r--r-- | ext/oracle/oracle.c | 14 |
1 files changed, 10 insertions, 4 deletions
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<br>\n" - "Compile-time ORACLE_HOME: %s<br>\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(); } |