From fb4f38bd7d8782cc35f99e158e59ce73390763ee Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Wed, 29 Jan 2025 17:05:09 -0500 Subject: [PATCH] PHPC-2501: Conditionally define MONGOC_CYRUS_PLUGIN_PATH_PREFIX on Windows This was missed in 6a2e15ae1fea545b750dff2977924f7e3eaf4af7 when bumping to libmongoc 1.26.2. Define the constant as null to satisfy compilation. It will not actually be used for path prefix checking. --- config.w32 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.w32 b/config.w32 index 91199a87b..0c9923540 100644 --- a/config.w32 +++ b/config.w32 @@ -239,6 +239,10 @@ if (PHP_MONGODB != "no") { CHECK_HEADER_ADD_INCLUDE("sasl/sasl.h", "CFLAGS_MONGODB")) { mongoc_opts.MONGOC_ENABLE_SASL = 1; mongoc_opts.MONGOC_ENABLE_SASL_CYRUS = 1; + + // Referenced by _mongoc_cyrus_verifyfile_cb in mongoc-cyrus.c on Windows + ADD_FLAG("CFLAGS_MONGODB", "/D MONGOC_CYRUS_PLUGIN_PATH_PREFIX=NULL"); + if (CHECK_FUNC_IN_HEADER("sasl/sasl.h", "sasl_client_done")) { mongoc_opts.MONGOC_HAVE_SASL_CLIENT_DONE = 1; }