* php-7.0:
Revert "Added back support for undocummented host:port syntax"
Revert "Using default port in ldap_connect when NULL is passed (this was the behavior prior to 5.6.11)"
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));
+ php_error_docref(NULL, E_WARNING, "Too many open links (%pd)", LDAPG(num_links));
RETURN_FALSE;
}