diff options
| -rw-r--r-- | ext/ldap/ldap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index ab663b156b..da8936cd76 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -349,6 +349,9 @@ PHP_FUNCTION(ldap_connect) RETURN_FALSE; } #endif + if (!port) { + port = LDAP_PORT; + } if (LDAPG(max_links) != -1 && LDAPG(num_links) >= LDAPG(max_links)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open links (%ld)", LDAPG(num_links)); |
