We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a74f7 commit eb25825Copy full SHA for eb25825
ext/ldap/ldap.c
@@ -988,10 +988,10 @@ PHP_FUNCTION(ldap_connect)
988
}
989
990
#ifdef LDAP_OPT_X_TLS_NEWCTX
991
- if (!memcmp(url, "ldaps:", 6)) {
+ {
992
int val = 0;
993
994
- /* ensure all pending TLS options are applied in a new context */
+ /* ensure all pending TLS options are applied in a new context (for ldaps or later starttls) */
995
if (ldap_set_option(NULL, LDAP_OPT_X_TLS_NEWCTX, &val) != LDAP_OPT_SUCCESS) {
996
php_error_docref(NULL, E_WARNING, "Could not create new security context");
997
0 commit comments