Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,7 +139,10 @@ if (PHP_MONGODB != "no") { | |
MONGOC_ENABLE_CRYPTO: 0, | ||
MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE: 0, | ||
MONGOC_ENABLE_SASL: 0, | ||
MONGOC_ENABLE_SASL_CYRUS: 0, | ||
MONGOC_ENABLE_SASL_SSPI: 0, | ||
MONGOC_HAVE_SASL_CLIENT_DONE: 0, | ||
MONGOC_HAVE_SOCKLEN: 0, | ||
MONGOC_HAVE_WEAK_SYMBOLS: 0, | ||
MONGOC_NO_AUTOMATIC_GLOBALS: 1, | ||
MONGOC_CC: "", | ||
|
@@ -165,17 +168,23 @@ if (PHP_MONGODB != "no") { | |
WARNING("mongodb libopenssl support not enabled, libs not found"); | ||
} | ||
|
||
// TODO: Support building with native GSSAPI (SSPI) on Windows | ||
if (PHP_MONGODB_SASL != "no" && | ||
CHECK_LIB("libsasl.lib", "mongodb", PHP_MONGODB) && | ||
CHECK_HEADER_ADD_INCLUDE("sasl/sasl.h", "CFLAGS_MONGODB")) { | ||
mongoc_opts.MONGOC_ENABLE_SASL = 1; | ||
mongoc_opts.MONGOC_ENABLE_SASL_CYRUS = 1; | ||
if (CHECK_FUNC_IN_HEADER("sasl/sasl.h", "sasl_client_done")) { | ||
mongoc_opts.MONGOC_HAVE_SASL_CLIENT_DONE = 1; | ||
} | ||
} else { | ||
WARNING("mongodb libsasl support not enabled, libs not found"); | ||
} | ||
|
||
if (CHECK_FUNC_IN_HEADER("ws2tcpip.h", "socklen_t")) { | ||
mongoc_opts.MONGOC_HAVE_SOCKLEN = 1; | ||
} | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Jan-E
|
||
if (typeof COMPILER_NAME === 'string') { | ||
mongoc_opts.MONGOC_CC = COMPILER_NAME; | ||
} else if (typeof VC_VERSIONS[VCVERS] === 'string') { | ||
|
Submodule libmongoc
updated
1316 files
@jmikola When compiling (for instance) PHP 5.6.31, this CHECK_FUNC_IN_HEADER evaluates as false. It adds a
#DEFINE HAVE_SOCKLEN_T 0
to main/config.w32.h, which is a redefinition of the
#DEFINE HAVE_SOCKLEN_T 1
that is already there:
https://github.com/php/php-src/blob/PHP-5.6.31/win32/build/config.w32.h.in#L155
I did not check in PHP master yet, but I guess the problem is the same.