From e6759644ec8cb548e48c124aaf13fe87f7ab3cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= Date: Mon, 23 Nov 2015 03:08:25 +0100 Subject: Revert "Added back support for undocummented host:port syntax" This reverts commit 15876e85e59658bfbda3bf0b0c34d56ca503fd2f. --- ext/ldap/ldap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ext/ldap/ldap.c') diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 4ff6534227..e0faf24b16 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -365,12 +365,7 @@ PHP_FUNCTION(ldap_connect) } url = emalloc(urllen); - if (host && (strchr(host, ':') != NULL)) { - /* Legacy support for host:port */ - snprintf( url, urllen, "ldap://%s", host ); - } else { - snprintf( url, urllen, "ldap://%s:%ld", host ? host : "", port ); - } + snprintf( url, urllen, "ldap://%s:%ld", host ? host : "", port ); } #ifdef LDAP_API_FEATURE_X_OPENLDAP -- cgit v1.2.1