diff options
author | Côme Bernigaud <mcmic@php.net> | 2015-11-23 03:08:02 +0100 |
---|---|---|
committer | Côme Bernigaud <mcmic@php.net> | 2015-11-24 03:45:17 +0100 |
commit | 5a8bcf73ba5aa381a5440c22780504e5d809b995 (patch) | |
tree | 5c0accab40f896bd55b41cf8f6a503071c34ec47 | |
parent | a8bd182ccd18aaf8919b6693281ecf8bbf4714e8 (diff) | |
download | php-git-5a8bcf73ba5aa381a5440c22780504e5d809b995.tar.gz |
Revert "Using default port in ldap_connect when NULL is passed (this was the behavior prior to 5.6.11)"
This reverts commit 391087ed280f86f144ffa5a2b72eeeda3c271743.
-rw-r--r-- | ext/ldap/ldap.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 9eaad2d878..4ff6534227 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -345,9 +345,6 @@ 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, E_WARNING, "Too many open links (%pd)", LDAPG(num_links)); |