From e78c60204d90a024c5270eef199b0bf1e20e2dd7 Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Mon, 11 Nov 2024 13:27:19 -0800 Subject: [PATCH] Show ABI version in `php -i` output --- src/php_couchbase.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/php_couchbase.cxx b/src/php_couchbase.cxx index e7598ab0..53e94588 100644 --- a/src/php_couchbase.cxx +++ b/src/php_couchbase.cxx @@ -3720,6 +3720,11 @@ static PHP_MINFO_FUNCTION(couchbase) { php_info_print_table_start(); php_info_print_table_row(2, "couchbase", "enabled"); +#ifdef COUCHBASE_ABI_VERSION + php_info_print_table_row(2, "couchbase_extension_abi", TOSTRING(COUCHBASE_ABI_VERSION)); +#else + php_info_print_table_row(2, "couchbase_extension_abi", "unspecified"); +#endif php_info_print_table_row(2, "couchbase_extension_version", PHP_COUCHBASE_VERSION); php_info_print_table_row(2, "couchbase_extension_revision", couchbase::php::extension_revision()); php_info_print_table_row(2, "couchbase_client_revision", couchbase::php::cxx_client_revision());