Skip to content

Commit 91ce18c

Browse files
minor #58211 [Ldap] Clean ldap_connect() call in LdapTestCase (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [Ldap] Clean `ldap_connect()` call in `LdapTestCase` | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT After #58143 (comment), follow-up for #58143 Commits ------- b15cd3d [Ldap] Clean `ldap_connect()` call in `LdapTestCase`
2 parents e35606b + b15cd3d commit 91ce18c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Component/Ldap/Tests/LdapTestCase.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ class LdapTestCase extends TestCase
1717
{
1818
protected function getLdapConfig()
1919
{
20-
if (\PHP_VERSION_ID < 80300) {
21-
$h = @ldap_connect(getenv('LDAP_HOST'), getenv('LDAP_PORT'));
22-
} else {
23-
$h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));
24-
}
25-
20+
$h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));
2621
@ldap_set_option($h, \LDAP_OPT_PROTOCOL_VERSION, 3);
2722

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

0 commit comments

Comments
 (0)