Skip to content

Commit bd44cc6

Browse files
committed
PHPC-563: Remove undocumented Manager "hosts" URI option
1 parent c63a1a8 commit bd44cc6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

php_phongo.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,16 +1540,6 @@ static mongoc_uri_t *php_phongo_make_uri(const char *uri_string, bson_t *options
15401540
else if (mongoc_uri_option_is_utf8(key) && BSON_ITER_HOLDS_UTF8(&iter)) {
15411541
mongoc_uri_set_option_as_utf8(uri, key, bson_iter_utf8 (&iter, NULL));
15421542
}
1543-
else if (BSON_ITER_HOLDS_ARRAY(&iter) && !strcasecmp(key, "hosts")) {
1544-
bson_iter_t sub;
1545-
1546-
bson_iter_recurse(&iter, &sub);
1547-
while (bson_iter_next (&sub)) {
1548-
if (BSON_ITER_HOLDS_UTF8(&sub)) {
1549-
mongoc_uri_parse_host(uri, bson_iter_utf8(&sub, NULL));
1550-
}
1551-
}
1552-
}
15531543
else if (BSON_ITER_HOLDS_UTF8(&iter)) {
15541544
const char *value = bson_iter_utf8 (&iter, NULL);
15551545

0 commit comments

Comments
 (0)