@@ -1883,7 +1883,23 @@ mongoc_client_t *php_phongo_make_mongo_client(const mongoc_uri_t *uri, zval *dri
18831883 php_phongo_populate_default_ssl_ctx (ctx , driverOptions );
18841884 }
18851885
1886- MONGOC_DEBUG ("Creating Manager, phongo-%s[%s] - mongoc-%s, libbson-%s" , MONGODB_VERSION_S , MONGODB_STABILITY_S , MONGOC_VERSION_S , BSON_VERSION_S );
1886+ MONGOC_DEBUG ("Creating Manager, phongo-%s[%s] - mongoc-%s(%s), libbson-%s(%s), php-%s" ,
1887+ MONGODB_VERSION_S ,
1888+ MONGODB_STABILITY_S ,
1889+ MONGOC_VERSION_S ,
1890+ #ifdef HAVE_SYSTEM_LIBMONGOC
1891+ mongoc_get_version (),
1892+ #else
1893+ "bundled" ,
1894+ #endif
1895+ BSON_VERSION_S ,
1896+ #ifdef HAVE_SYSTEM_LIBBSON
1897+ bson_get_version (),
1898+ #else
1899+ "bundled" ,
1900+ #endif
1901+ PHP_VERSION
1902+ );
18871903 client = mongoc_client_new_from_uri (uri );
18881904
18891905 if (!client ) {
@@ -2393,8 +2409,19 @@ PHP_MINFO_FUNCTION(mongodb)
23932409 php_info_print_table_header (2 , "mongodb support" , "enabled" );
23942410 php_info_print_table_row (2 , "mongodb version" , MONGODB_VERSION_S );
23952411 php_info_print_table_row (2 , "mongodb stability" , MONGODB_STABILITY_S );
2412+ #ifdef HAVE_SYSTEM_LIBMONGOC
2413+ php_info_print_table_row (2 , "libmongoc headers version" , MONGOC_VERSION_S );
2414+ php_info_print_table_row (2 , "libmongoc library version" , mongoc_get_version ());
2415+ #else
2416+ /* Bundled libraries, buildtime = runtime */
23962417 php_info_print_table_row (2 , "libmongoc version" , MONGOC_VERSION_S );
2418+ #endif
2419+ #ifdef HAVE_SYSTEM_LIBBSON
2420+ php_info_print_table_row (2 , "libbson headers version" , BSON_VERSION_S );
2421+ php_info_print_table_row (2 , "libbson library version" , bson_get_version ());
2422+ #else
23972423 php_info_print_table_row (2 , "libbson version" , BSON_VERSION_S );
2424+ #endif
23982425 php_info_print_table_end ();
23992426
24002427 DISPLAY_INI_ENTRIES ();
0 commit comments