From af54189dfc2590b92358a1ece3528a3eeb7b3770 Mon Sep 17 00:00:00 2001 From: Andras Debreczeni Date: Tue, 18 Sep 2018 09:27:02 +0200 Subject: [PATCH] [Ldap] Use shut up operator on connection errors at ldap_start_tls --- src/Symfony/Component/Ldap/LdapClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Ldap/LdapClient.php b/src/Symfony/Component/Ldap/LdapClient.php index de341e06d2..92a7be9970 100644 --- a/src/Symfony/Component/Ldap/LdapClient.php +++ b/src/Symfony/Component/Ldap/LdapClient.php @@ -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); } } }