We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 288793e commit e50bc7eCopy full SHA for e50bc7e
src/Symfony/Component/Ldap/Adapter/ExtLdap/Connection.php
@@ -159,12 +159,10 @@ private function connect()
159
}
160
161
162
- $connectResult = ldap_connect($this->config['connection_string']);
163
-
164
- if (false === $connectResult) {
165
- throw new LdapException('Syntax of the (computed) connection string is bad: '.$this->config['connection_string']);
+ if (false === $connection = ldap_connect($this->config['connection_string'])) {
+ throw new LdapException('Invalid connection string: '.$this->config['connection_string']);
166
} else {
167
- $this->connection = $connectResult;
+ $this->connection = $connection;
168
169
170
foreach ($this->config['options'] as $name => $value) {
0 commit comments