Skip to content

Commit

Permalink
Show ABI version in php -i output
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej committed Nov 11, 2024
1 parent 2bade60 commit e78c602
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/php_couchbase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e78c602

Please sign in to comment.