diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-31 01:18:32 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-31 01:18:32 +0000 |
commit | 7ff14124327887b34cf5c99f8475f1626b2a76c3 (patch) | |
tree | 0fc3b53fd6d57aeab6150d3c5e8ed72dd4a3f8c3 /ext/pgsql/pgsql.c | |
parent | c5d35962d23df3ecedaf9892bf9a4d495840c5f1 (diff) | |
download | php-git-7ff14124327887b34cf5c99f8475f1626b2a76c3.tar.gz |
Print PostgreSQL version number in phpinfo()
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 2d71c17507..413f4d2aba 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -399,6 +399,9 @@ PHP_MINFO_FUNCTION(pgsql) php_info_print_table_start(); php_info_print_table_header(2, "PostgreSQL Support", "enabled"); +#ifdef HAVE_PG_CONFIG_H + php_info_print_table_row(2, "PostgreSQL(libpq) Version", PG_VERSION); +#endif sprintf(buf, "%ld", PGG(num_persistent)); php_info_print_table_row(2, "Active Persistent Links", buf); sprintf(buf, "%ld", PGG(num_links)); |