From: Yasuo Ohgaki Date: Sun, 31 Mar 2002 01:45:22 +0000 (+0000) Subject: Print multibyte and SSL support is compiled in libpq or not. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~951 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=266692a59a262ed888b926edf2a0b9107e27f328;p=php Print multibyte and SSL support is compiled in libpq or not. --- 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));