8000 bug #28499 [Ldap] Use shut up operator on connection errors at ldap_s… · symfony/symfony@c75b1ed · GitHub
[go: up one dir, main page]

Skip to content

Commit c75b1ed

Browse files
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 ------- af54189 [Ldap] Use shut up operator on connection errors at ldap_start_tls
2 parents a9004b3 + af54189 commit c75b1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Ldap/LdapClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function connect()
136136
ldap_set_option($this->connection, LDAP_OPT_REFERRALS, $this->optReferrals);
137137

138138
if ($this->useStartTls) {
139-
ldap_start_tls($this->connection);
139+
@ldap_start_tls($this->connection);
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)
0