@@ -1883,7 +1883,23 @@ mongoc_client_t *php_phongo_make_mongo_client(const mongoc_uri_t *uri, zval *dri
1883
1883
php_phongo_populate_default_ssl_ctx (ctx , driverOptions );
1884
1884
}
1885
1885
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
+ );
1887
1903
client = mongoc_client_new_from_uri (uri );
1888
1904
1889
1905
if (!client ) {
@@ -2393,8 +2409,19 @@ PHP_MINFO_FUNCTION(mongodb)
2393
2409
php_info_print_table_header (2 , "mongodb support" , "enabled" );
2394
2410
php_info_print_table_row (2 , "mongodb version" , MONGODB_VERSION_S );
2395
2411
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 */
2396
2417
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
2397
2423
php_info_print_table_row (2 , "libbson version" , BSON_VERSION_S );
2424
+ #endif
2398
2425
php_info_print_table_end ();
2399
2426
2400
2427
DISPLAY_INI_ENTRIES ();
0 commit comments