diff options
author | Anatol Belski <ab@php.net> | 2015-02-07 11:23:50 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-02-07 11:23:50 +0100 |
commit | 1c331d8d39e8013862cabc1d9cf942db89d7ad5a (patch) | |
tree | 8a43f00291f3984a82871328646049277147f258 /ext/odbc | |
parent | be718e45b0aa6a81e1c6f37b7bbdc30820f3c72b (diff) | |
download | php-git-1c331d8d39e8013862cabc1d9cf942db89d7ad5a.tar.gz |
added ODBCVER to phpinfo()
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/php_odbc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index cfd6e95518..20511f8b75 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -841,6 +841,10 @@ PHP_MINFO_FUNCTION(odbc) snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); php_info_print_table_row(2, "Active Links", buf); php_info_print_table_row(2, "ODBC library", PHP_ODBC_TYPE); +#ifdef ODBCVER + snprintf(buf, sizeof(buf), "0x%0.4x", ODBCVER); + php_info_print_table_row(2, "ODBCVER", buf); +#endif #ifndef PHP_WIN32 php_info_print_table_row(2, "ODBC_INCLUDE", PHP_ODBC_INCLUDE); php_info_print_table_row(2, "ODBC_LFLAGS", PHP_ODBC_LFLAGS); |