1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Update ext/ldap sanity check (#13946)

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.
This commit is contained in:
Peter Kokot
2024-04-12 10:20:26 +02:00
committed by GitHub
parent 3a40e3d95b
commit a6fdd8fb19

View File

@@ -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