From: Côme Bernigaud Date: Mon, 23 Nov 2015 02:08:02 +0000 (+0100) Subject: Revert "Using default port in ldap_connect when NULL is passed (this was the behavior... X-Git-Tag: php-7.1.0alpha1~705^2~55^2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9bfdcb82ce6da10f9cf9592f9fd58990388335a;p=php Revert "Using default port in ldap_connect when NULL is passed (this was the behavior prior to 5.6.11)" This reverts commit 391087ed280f86f144ffa5a2b72eeeda3c271743. --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 8b66ba44ca..64885c7cb7 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -349,9 +349,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 TSRMLS_CC, E_WARNING, "Too many open links (%ld)", LDAPG(num_links));