summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pdo_pgsql.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_pgsql/pdo_pgsql.c')
-rw-r--r--ext/pdo_pgsql/pdo_pgsql.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/pdo_pgsql/pdo_pgsql.c b/ext/pdo_pgsql/pdo_pgsql.c
index 815d1ceb88..047329d3cb 100644
--- a/ext/pdo_pgsql/pdo_pgsql.c
+++ b/ext/pdo_pgsql/pdo_pgsql.c
@@ -26,11 +26,6 @@
#include "php_pdo_pgsql.h"
#include "php_pdo_pgsql_int.h"
-#ifdef HAVE_PG_CONFIG_H
-#undef SIZEOF_OFF_T
-#include <pg_config.h>
-#endif
-
/* {{{ pdo_pgsql_functions[] */
static const zend_function_entry pdo_pgsql_functions[] = {
PHP_FE_END
@@ -96,11 +91,12 @@ PHP_MSHUTDOWN_FUNCTION(pdo_pgsql)
*/
PHP_MINFO_FUNCTION(pdo_pgsql)
{
+ char buf[16];
+
php_info_print_table_start();
php_info_print_table_row(2, "PDO Driver for PostgreSQL", "enabled");
-#ifdef HAVE_PG_CONFIG_H
- php_info_print_table_row(2, "PostgreSQL(libpq) Version", PG_VERSION);
-#endif
+ pdo_libpq_version(buf, sizeof(buf));
+ php_info_print_table_row(2, "PostgreSQL(libpq) Version", buf);
php_info_print_table_end();
}
/* }}} */