Skip to content

Commit 7f761be

Browse files
committed
Upgrade libbson and libmongoc to latest master (1.5.0-dev)
1 parent a2261a9 commit 7f761be

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

config.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,15 @@ if test "$MONGODB" != "no"; then
241241
mongoc-cursor-cursorid.c \
242242
mongoc-cursor-transform.c \
243243
mongoc-database.c \
244+
mongoc-linux-distro-scanner.c \
244245
mongoc-find-and-modify.c \
245246
mongoc-host-list.c \
246247
mongoc-init.c \
247248
mongoc-gridfs.c \
248249
mongoc-gridfs-file.c \
249250
mongoc-gridfs-file-page.c \
250251
mongoc-gridfs-file-list.c \
252+
mongoc-handshake.c \
251253
mongoc-index.c \
252254
mongoc-list.c \
253255
mongoc-log.c \
@@ -414,6 +416,8 @@ PHP_ARG_WITH(libmongoc, whether to use system libmongoc,
414416
AC_SUBST(MONGOC_ENABLE_SSL_SECURE_CHANNEL, 0)
415417
AC_SUBST(MONGOC_ENABLE_CRYPTO_CNG, 0)
416418

419+
AC_SUBST(MONGOC_ENABLE_SSL_LIBRESSL, 0)
420+
417421
AC_SUBST(MONGOC_NO_AUTOMATIC_GLOBALS, 1)
418422
AC_SUBST(MONGOC_EXPERIMENTAL_FEATURES, 0)
419423
fi

php_phongo.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,8 +1390,6 @@ static mongoc_client_t *php_phongo_make_mongo_client(const mongoc_uri_t *uri, zv
13901390
const char *mongoc_version, *bson_version;
13911391
mongoc_client_t *client;
13921392

1393-
ENTRY;
1394-
13951393
#if PHP_VERSION_ID >= 70000
13961394
if (driverOptions && (zdebug = zend_hash_str_find(Z_ARRVAL_P(driverOptions), "debug", sizeof("debug")-1)) != NULL) {
13971395
zend_string *key = zend_string_init(PHONGO_DEBUG_INI, sizeof(PHONGO_DEBUG_INI)-1, 0);
@@ -1432,17 +1430,17 @@ static mongoc_client_t *php_phongo_make_mongo_client(const mongoc_uri_t *uri, zv
14321430
client = mongoc_client_new_from_uri(uri);
14331431

14341432
if (!client) {
1435-
RETURN(NULL);
1433+
return NULL;
14361434
}
14371435

14381436
if (mongoc_uri_get_ssl(uri) && driverOptions) {
14391437
if (!php_phongo_apply_ssl_opts(client, driverOptions TSRMLS_CC)) {
14401438
mongoc_client_destroy(client);
1441-
RETURN(NULL);
1439+
return NULL;
14421440
}
14431441
}
14441442

1445-
RETURN(client);
1443+
return client;
14461444
} /* }}} */
14471445

14481446
bool phongo_manager_init(php_phongo_manager_t *manager, const char *uri_string, bson_t *bson_options, zval *driverOptions TSRMLS_DC) /* {{{ */

src/libmongoc

Submodule libmongoc updated 250 files

0 commit comments

Comments
 (0)