summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-03-31 01:45:22 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-03-31 01:45:22 +0000
commit266692a59a262ed888b926edf2a0b9107e27f328 (patch)
tree21133f370d09236a0b31c26de8820198c4f42910 /ext/pgsql/pgsql.c
parent3e67ad4dfa9490de9ea0b92010a29ef2808ae04c (diff)
downloadphp-git-266692a59a262ed888b926edf2a0b9107e27f328.tar.gz
Print multibyte and SSL support is compiled in libpq or not.
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 413f4d2aba..1654f58d5a 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -399,9 +399,19 @@ PHP_MINFO_FUNCTION(pgsql)
php_info_print_table_start();
php_info_print_table_header(2, "PostgreSQL Support", "enabled");
-#ifdef HAVE_PG_CONFIG_H
+#if HAVE_PG_CONFIG_H
php_info_print_table_row(2, "PostgreSQL(libpq) Version", PG_VERSION);
-#endif
+#ifdef MULTIBYTE
+ php_info_print_table_row(2, "Multibyte charater support", "enabled");
+#else
+ php_info_print_table_row(2, "Multibyte charater support", "disabled");
+#endif
+#ifdef USE_SSL
+ php_info_print_table_row(2, "SSL support", "enabled");
+#else
+ php_info_print_table_row(2, "SSL support", "disabled");
+#endif
+#endif /* HAVE_PG_CONFIG_H */
sprintf(buf, "%ld", PGG(num_persistent));
php_info_print_table_row(2, "Active Persistent Links", buf);
sprintf(buf, "%ld", PGG(num_links));