Commit edd99f7b5a8 for php.net
commit edd99f7b5a8b7e3e7db05c8b9c152e7c3ed2f993
Author: Peter Kokot <peterkokot@gmail.com>
Date: Wed Apr 15 13:49:30 2026 +0200
ext/ldap: Enable ldap_set_rebind_proc() on Windows (#21749)
Windows uses OpenLDAP which provides ldap_set_rebind_proc() with a
3-arg-signature:
https://github.com/winlibs/openldap
diff --git a/ext/ldap/config.w32 b/ext/ldap/config.w32
index 7dbb353dd80..c6a7049aa1c 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");
}