File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,7 @@ if (PHP_MONGODB != "no") {
232
232
WARNING ( "mongodb libopenssl support not enabled, libs not found" ) ;
233
233
}
234
234
235
- if ( PHP_MONGODB_SASL != "no" &&
236
- CHECK_LIB ( "libsasl.lib" , "mongodb" , PHP_MONGODB ) &&
237
- CHECK_HEADER_ADD_INCLUDE ( "sasl/sasl.h" , "CFLAGS_MONGODB" ) ) {
238
-
235
+ if ( PHP_MONGODB_SASL != "no" ) {
239
236
// TODO 3.0: Remove warning on "yes" as it implies "sspi"
240
237
if ( PHP_MONGODB_SASL == "yes" ) {
241
238
WARNING ( "Cyrus SASL support for Windows was removed. Falling back to SSPI; use '--with-mongodb-sasl=sspi' to avoid this warning." ) ;
@@ -245,14 +242,12 @@ if (PHP_MONGODB != "no") {
245
242
mongoc_opts . MONGOC_ENABLE_SASL = 1 ;
246
243
mongoc_opts . MONGOC_ENABLE_SASL_SSPI = 1 ;
247
244
} else {
248
- WARNING ( "MongoDB SASL support not enabled, unknown value for PHP_MONGODB_SASL : " + PHP_MONGODB_SASL ) ;
245
+ ERROR ( "MongoDB SASL support not enabled, unknown value for --with-mongodb-sasl : " + PHP_MONGODB_SASL ) ;
249
246
}
250
247
251
248
if ( CHECK_FUNC_IN_HEADER ( "sasl/sasl.h" , "sasl_client_done" ) ) {
252
249
mongoc_opts . MONGOC_HAVE_SASL_CLIENT_DONE = 1 ;
253
250
}
254
- } else if ( PHP_MONGODB_SASL != "no" ) {
255
- WARNING ( "mongodb libsasl support not enabled, libs not found" ) ;
256
251
}
257
252
258
253
if ( PHP_MONGODB_CLIENT_SIDE_ENCRYPTION != "no" && mongoc_ssl_found ) {
You can’t perform that action at this time.
0 commit comments