Skip to content

PHPC-1097: Report libmongoc compression in phpinfo #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions php_phongo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2901,6 +2901,22 @@ PHP_MINFO_FUNCTION(mongodb)
php_info_print_table_row(2, "libmongoc SASL", "disabled");
#endif

#ifdef MONGOC_ENABLE_COMPRESSION
php_info_print_table_row(2, "libmongoc compression", "enabled");
# ifdef MONGOC_ENABLE_COMPRESSION_SNAPPY
php_info_print_table_row(2, "libmongoc compression snappy", "enabled");
# else
php_info_print_table_row(2, "libmongoc compression snappy", "disabled");
# endif
# ifdef MONGOC_ENABLE_COMPRESSION_ZLIB
php_info_print_table_row(2, "libmongoc compression zlib", "enabled");
# else
php_info_print_table_row(2, "libmongoc compression zlib", "disabled");
# endif
#else
php_info_print_table_row(2, "libmongoc compression", "disabled");
#endif

php_info_print_table_end();

DISPLAY_INI_ENTRIES();
Expand Down