Skip to content

Commit 6bb2a48

Browse files
committed
PHPC-609: Use mongoc_client_get_uri() in Manager debug handler
1 parent 1583321 commit 6bb2a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB/Manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ HashTable *php_phongo_manager_get_debug_info(zval *object, int *is_temp TSRMLS_D
432432

433433
array_init_size(&retval, 2);
434434

435-
ADD_ASSOC_STRING(&retval, "uri", (char *)mongoc_uri_get_string(intern->client->uri));
435+
ADD_ASSOC_STRING(&retval, "uri", (char *)mongoc_uri_get_string(mongoc_client_get_uri(intern->client)));
436436

437437
sds = mongoc_client_get_server_descriptions(intern->client, &n);
438438

0 commit comments

Comments
 (0)