Skip to content

Commit 69671db

Browse files
authored
PHPC-2228: Upgrade libmongocrypt to 1.8.1 (#1428)
* Update expected error message for invalid crypt_shared override path This was changed in mongodb/libmongocrypt@792beee for MONGOCRYPT-576 * Update update-submodule-sources script for zlib 1.2.13 libmongoc 1.24-dev recently bumped zlib from 1.2.12 to 1.2.13 (CDRIVER-4624). This change was applied to config.m4 in 14af5ea but that commit missed the update-submodule-sources script.
1 parent b1ff48a commit 69671db

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ if test "$PHP_MONGODB" != "no"; then
291291
AC_MSG_CHECKING(for libmongocrypt)
292292

293293
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libmongocrypt; then
294-
if $PKG_CONFIG libmongocrypt --atleast-version 1.8.0; then
294+
if $PKG_CONFIG libmongocrypt --atleast-version 1.8.1; then
295295
PHP_MONGODB_MONGOCRYPT_CFLAGS=`$PKG_CONFIG libmongocrypt --cflags`
296296
PHP_MONGODB_MONGOCRYPT_LIBS=`$PKG_CONFIG libmongocrypt --libs`
297297
PHP_MONGODB_MONGOCRYPT_VERSION=`$PKG_CONFIG libmongocrypt --modversion`
@@ -302,7 +302,7 @@ if test "$PHP_MONGODB" != "no"; then
302302
PHP_EVAL_LIBLINE($PHP_MONGODB_MONGOCRYPT_LIBS, MONGODB_SHARED_LIBADD)
303303
AC_DEFINE(HAVE_SYSTEM_LIBMONGOCRYPT, 1, [Use system libmongocrypt])
304304
elif test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" = "yes"; then
305-
AC_MSG_ERROR(system libmongocrypt must be upgraded to version >= 1.8.0)
305+
AC_MSG_ERROR(system libmongocrypt must be upgraded to version >= 1.8.1)
306306
else
307307
AC_MSG_RESULT([found an older version, compiling without client-side encryption])
308308
fi

scripts/update-submodule-sources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'PHP_MONGODB_BSON_SOURCES' => 'src/libmongoc/src/libbson/src/bson',
99
'PHP_MONGODB_JSONSL_SOURCES' => 'src/libmongoc/src/libbson/src/jsonsl',
1010
'PHP_MONGODB_MONGOC_SOURCES' => 'src/libmongoc/src/libmongoc/src/mongoc',
11-
'PHP_MONGODB_ZLIB_SOURCES' => 'src/libmongoc/src/zlib-1.2.12',
11+
'PHP_MONGODB_ZLIB_SOURCES' => 'src/libmongoc/src/zlib-1.2.13',
1212
'PHP_MONGODB_MONGOCRYPT_SOURCES' => 'src/libmongocrypt/src',
1313
'PHP_MONGODB_MONGOCRYPT_CRYPTO_SOURCES' => 'src/libmongocrypt/src/crypto',
1414
'PHP_MONGODB_MONGOCRYPT_OS_POSIX_SOURCES' => 'src/libmongocrypt/src/os_posix',

src/LIBMONGOCRYPT_VERSION_CURRENT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.0-alpha0
1+
1.8.1

src/libmongocrypt

Submodule libmongocrypt updated 86 files

tests/manager/manager-ctor-auto_encryption-error-004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var_dump(get_module_info('crypt_shared library version'));
3232
<?php exit(0); ?>
3333
--EXPECTF--
3434
OK: Got MongoDB\Driver\Exception\EncryptionException
35-
A crypt_shared override path was specified [/not/found], but we failed to open a dynamic library at that location
35+
A crypt_shared override path was specified [/not/found], but we failed to open a dynamic library at that location%A
3636

3737
OK: Got MongoDB\Driver\Exception\EncryptionException
3838
Option 'cryptSharedLibRequired' is 'true', but failed to load the crypt_shared runtime library

0 commit comments

Comments
 (0)