From d3b6225129763c05823cbd09524b90b4d610ae02 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 12 Apr 2024 06:24:08 +0200 Subject: [PATCH] Update ext/ldap sanity check The ldap_bind_s() has been deprecated and isn't used in the code in favor of ldap_sasl_bind_s(). PHP falls back to deprecated ldap_simple_bind_s() if for some reason ldap_sasl_bind_s() isn't available and this check likewise. --- ext/ldap/config.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4 index 89c4b1953195..76c097a17b8a 100644 --- a/ext/ldap/config.m4 +++ b/ext/ldap/config.m4 @@ -124,9 +124,9 @@ if test "$PHP_LDAP" != "no"; then fi dnl Sanity check - AC_CHECK_FUNC(ldap_bind_s, [], [ - AC_MSG_ERROR([LDAP build check failed. Please check config.log for more information.]) - ]) + AC_CHECK_FUNC([ldap_sasl_bind_s],, + [AC_CHECK_FUNC([ldap_simple_bind_s],, + [AC_MSG_ERROR([LDAP build check failed. Please check config.log for details.])])]) dnl Restore original values CPPFLAGS=$_SAVE_CPPFLAGS