diff --git a/sapi/src/builder/extension/mongodb.php b/sapi/src/builder/extension/mongodb.php index 54f04ba37..d5b6605de 100644 --- a/sapi/src/builder/extension/mongodb.php +++ b/sapi/src/builder/extension/mongodb.php @@ -23,8 +23,15 @@ $options = ' --enable-mongodb '; $options .= ' --with-mongodb-system-libs=no '; + $options .= ' --with-mongodb-client-side-encryption=no '; $options .= ' --with-mongodb-ssl=openssl '; + $options .= ' --with-mongodb-snappy=no '; + $options .= ' --with-mongodb-zlib=yes '; + $options .= ' --with-mongodb-zstd=yes '; $options .= ' --with-mongodb-sasl=no '; + $options .= ' --enable-mongodb-crypto-system-profile=no '; + $options .= ' --with-mongodb-utf8proc=bundled '; + $options .= ' --with-openssl-dir=' . OPENSSL_PREFIX; $ext = new Extension('mongodb'); @@ -32,10 +39,10 @@ ->withHomePage('https://www.mongodb.com/docs/drivers/php/') ->withOptions($options) ->withPeclVersion('1.19.4') - ->withFileHash('md5', '91f96b24df7ed5651731671f55cb68a1') - ; + ->withFileHash('md5', '91f96b24df7ed5651731671f55cb68a1'); $depends = ['icu', 'openssl', 'zlib', 'libzstd']; + call_user_func_array([$ext, 'withDependentLibraries'], $depends); $p->addExtension($ext); };