We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ldap_connect()
LdapTestCase
1 parent adc87ad commit b15cd3dCopy full SHA for b15cd3d
src/Symfony/Component/Ldap/Tests/LdapTestCase.php
@@ -17,12 +17,7 @@ class LdapTestCase extends TestCase
17
{
18
protected function getLdapConfig()
19
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
-
+ $h = @ldap_connect('ldap://'.getenv('LDAP_HOST').':'.getenv('LDAP_PORT'));
26
@ldap_set_option($h, \LDAP_OPT_PROTOCOL_VERSION, 3);
27
28
if (!$h || !@ldap_bind($h)) {
0 commit comments