Skip to content

Commit c7d3666

Browse files
committed
Differenciate the connection type by the SSL option
1 parent 1b4e5ac commit c7d3666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_phongo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_h
835835
TSRMLS_SET_CTX(base_stream->tsrm_ls);
836836

837837
/* flush missing, doesn't seem to be used */
838-
base_stream->vtable.type = 42;
838+
base_stream->vtable.type = 100 + enable_ssl;
839839
base_stream->vtable.destroy = phongo_stream_destroy;
840840
base_stream->vtable.close = phongo_stream_close;
841841
base_stream->vtable.writev = phongo_stream_writev;

0 commit comments

Comments
 (0)