Skip to content

Commit a6fdd8f

Browse files
authored
Update ext/ldap sanity check (php#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.
1 parent 3a40e3d commit a6fdd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/ldap/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ if test "$PHP_LDAP" != "no"; then
124124
fi
125125

126126
dnl Sanity check
127-
AC_CHECK_FUNC(ldap_bind_s, [], [
128-
AC_MSG_ERROR([LDAP build check failed. Please check config.log for more information.])
129-
])
127+
AC_CHECK_FUNC([ldap_sasl_bind_s],,
128+
[AC_CHECK_FUNC([ldap_simple_bind_s],,
129+
[AC_MSG_ERROR([LDAP build check failed. Please check config.log for details.])])])
130130

131131
dnl Restore original values
132132
CPPFLAGS=$_SAVE_CPPFLAGS

0 commit comments

Comments
 (0)