From 8e873bd94f8c38a1bf7dcb1171382cec7c3564d1 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 14 Apr 2026 13:38:33 +0200 Subject: [PATCH] ext/ldap: Enable ldap_set_rebind_proc() on Windows Windows uses OpenLDAP which provides ldap_set_rebind_proc() with a 3-arg-signature: https://github.com/winlibs/openldap --- ext/ldap/config.w32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ldap/config.w32 b/ext/ldap/config.w32 index 7dbb353dd80bc..c6a7049aa1c62 100644 --- a/ext/ldap/config.w32 +++ b/ext/ldap/config.w32 @@ -24,7 +24,7 @@ if (PHP_LDAP != "no") { AC_DEFINE('HAVE_LDAP_WHOAMI_S', 1); AC_DEFINE('HAVE_LDAP_REFRESH_S', 1); AC_DEFINE('HAVE_LDAP_EXTENDED_OPERATION', 1); - + AC_DEFINE('HAVE_3ARG_SETREBINDPROC', 1); } else { WARNING("ldap not enabled; libraries and headers not found"); }