Skip to content

Commit eac4fa0

Browse files
[Ldap] Fix deprecated signature call for ldap_connect()
1 parent 8436f08 commit eac4fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Adapter/ExtLdap/AdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testLdapEscape()
3939
*/
4040
public function testSaslBind()
4141
{
42-
$h = @ldap_connect(getenv('LDAP_HOST'), getenv('LDAP_PORT'));
42+
$h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));
4343
@ldap_set_option($h, \LDAP_OPT_PROTOCOL_VERSION, 3);
4444

4545
if (!$h || !@ldap_bind($h)) {

0 commit comments

Comments
 (0)