Skip to content

Commit 79d9bd5

Browse files
committed
Fix typo in persistent hash
1 parent 40de478 commit 79d9bd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

php_phongo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_h
857857
timeoutp = &timeout;
858858
}
859859

860-
spprintf(&uniqid, 0, "mongodb://%s:%s@%s:%d/%s?authMechanism=%s&authMechanism=%s",
860+
spprintf(&uniqid, 0, "mongodb://%s:%s@%s:%d/%s?authMechanism=%s&authSource=%s",
861861
mongoc_uri_get_username(uri),
862862
mongoc_uri_get_password(uri),
863863
host->host,
@@ -884,6 +884,7 @@ mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_h
884884

885885
if (mongoc_uri_get_ssl(uri)) {
886886
zend_error_handling error_handling;
887+
887888
zend_replace_error_handling(EH_THROW, php_phongo_sslconnectionexception_ce, &error_handling TSRMLS_CC);
888889

889890
mongoc_log(MONGOC_LOG_LEVEL_DEBUG, MONGOC_LOG_DOMAIN, "Enabling SSL");
@@ -902,6 +903,7 @@ mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_h
902903
efree(dsn);
903904
return NULL;
904905
}
906+
905907
zend_restore_error_handling(&error_handling TSRMLS_CC);
906908
}
907909
efree(dsn);

0 commit comments

Comments
 (0)