bug #28499 [Ldap] Use shut up operator on connection errors at ldap_start_tls (Andras Debreczeni)

This PR was merged into the 2.8 branch.

Discussion
----------

[Ldap] Use shut up operator on connection errors at ldap_start_tls

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28426
| License       | MIT
| Doc PR        | n/a

Added shut-up operator to php function `ldap_start_tls()` so connection errors are ignored.

Commits
-------

af54189dfc [Ldap] Use shut up operator on connection errors at ldap_start_tls
This commit is contained in:
Nicolas Grekas 2018-09-18 10:04:20 +02:00
commit c75b1edf78

View File

@ -136,7 +136,7 @@ class LdapClient implements LdapClientInterface
ldap_set_option($this->connection, LDAP_OPT_REFERRALS, $this->optReferrals);
if ($this->useStartTls) {
ldap_start_tls($this->connection);
@ldap_start_tls($this->connection);
}
}
}