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.
2 parents ff718b4 + 201ef8f commit 8fcccc7Copy full SHA for 8fcccc7
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