Thanks to visit codestin.com Credit goes to github.com
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 af1c1a7 + 8026481 commit 73ca0b7Copy full SHA for 73ca0b7
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