LdapConnection#prepareNewConnection(): don't pass the port to ldap_connect()

This is deprecated since PHP 8.3.
But this is unnecessary anyway as the passed hostname is computed
by #normalizeHostname() which takes the port into account.
This commit is contained in:
Alexander A. Klimov 2023-10-05 16:47:10 +02:00
parent e5f6fc276a
commit 49d6efe9a1

@ -1198,7 +1198,7 @@ class LdapConnection implements Selectable, Inspectable
$hostname = $this->normalizeHostname($this->hostname);
$ds = ldap_connect($hostname, $this->port);
$ds = ldap_connect($hostname);
// Set a proper timeout for each connection
ldap_set_option($ds, LDAP_OPT_NETWORK_TIMEOUT, $this->timeout);