Skip to content

Commit 50fe097

Browse files
committed
Store the original mongoc_uri_t not just the options bson
1 parent 14533db commit 50fe097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php_phongo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_h
869869

870870
base_stream = ecalloc(1, sizeof(php_phongo_stream_socket));
871871
base_stream->stream = stream;
872-
base_stream->uri_options = options;
872+
base_stream->uri = uri;
873873
base_stream->host = host;
874874
base_stream->log = phongo_stream_logger;
875875
TSRMLS_SET_CTX(base_stream->tsrm_ls);

php_phongo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ typedef struct
8181
{
8282
mongoc_stream_t vtable;
8383
php_stream *stream;
84-
const bson_t *uri_options;
84+
const mongoc_uri_t *uri;
8585
const mongoc_host_list_t *host;
8686
php_phongo_stream_logger log;
8787
#if ZTS

0 commit comments

Comments
 (0)