8000 [Ldap] Fix deprecated signature call for `ldap_connect()` · devloop42/symfony@9950722 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9950722

Browse files
[Ldap] Fix deprecated signature call for ldap_connect()
1 parent 3711a6a commit 9950722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Ldap/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)
0