8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6896976 commit 8026481Copy full SHA for 8026481
src/Symfony/Component/Ldap/Tests/LdapTestCase.php
@@ -17,7 +17,12 @@ class LdapTestCase extends TestCase
17
{
18
protected function getLdapConfig()
19
20
- $h = @ldap_connect(getenv('LDAP_HOST'), getenv('LDAP_PORT'));
+ 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
+
26
@ldap_set_option($h, \LDAP_OPT_PROTOCOL_VERSION, 3);
27
28
if (!$h || !@ldap_bind($h)) {
0 commit comments