]> granicus.if.org Git - php/commitdiff
Revert "Using default port in ldap_connect when NULL is passed (this was the behavior...
authorCôme Bernigaud <mcmic@php.net>
Mon, 23 Nov 2015 02:08:02 +0000 (03:08 +0100)
committerCôme Bernigaud <mcmic@php.net>
Mon, 23 Nov 2015 02:08:02 +0000 (03:08 +0100)
This reverts commit 391087ed280f86f144ffa5a2b72eeeda3c271743.

ext/ldap/ldap.c

index 8b66ba44ca73bb75a8e8dc1a5b7ab1f8737e2785..64885c7cb73a0acefe407b99401ee1b71e97193f 100644 (file)
@@ -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));