From: George Peter Banyard Date: Fri, 15 May 2020 22:40:37 +0000 (+0200) Subject: Drop check for HAVE_NSLDAP X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b91c2845cfd65b92490bad62d88b58ed33114a29;p=php Drop check for HAVE_NSLDAP This constant is never defined thus useless --- diff --git a/ext/ldap/ldap.stub.php b/ext/ldap/ldap.stub.php index 413d20fcf0..b2ff721396 100644 --- a/ext/ldap/ldap.stub.php +++ b/ext/ldap/ldap.stub.php @@ -209,7 +209,7 @@ function ldap_control_paged_result($link, int $pagesize, bool $iscritical = fals function ldap_control_paged_result_response($link, $result, &$cookie = null, &$estimated = null): bool {} #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP /** @param resource $link_identifier */ function ldap_rename($link_identifier, string $dn, string $newrdn, string $newparent, bool $deleteoldrdn, array $servercontrols = []): bool {} diff --git a/ext/ldap/ldap_arginfo.h b/ext/ldap/ldap_arginfo.h index 06a3737146..7f8ee30cde 100644 --- a/ext/ldap/ldap_arginfo.h +++ b/ext/ldap/ldap_arginfo.h @@ -204,7 +204,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_control_paged_result_respon ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_rename, 0, 5, _IS_BOOL, 0) ZEND_ARG_INFO(0, link_identifier) ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0) @@ -215,7 +215,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_rename, 0, 5, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_rename_ext, 0, 0, 5) ZEND_ARG_INFO(0, link_identifier) ZEND_ARG_TYPE_INFO(0, dn, IS_STRING, 0) @@ -226,7 +226,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_rename_ext, 0, 0, 5) ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_get_option, 0, 2, _IS_BOOL, 0) ZEND_ARG_INFO(0, link_identifier) ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) @@ -234,7 +234,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_get_option, 0, 2, _IS_BOOL, ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_set_option, 0, 3, _IS_BOOL, 0) ZEND_ARG_INFO(0, link_identifier) ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0) @@ -242,21 +242,21 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_set_option, 0, 3, _IS_BOOL, ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_first_reference, 0, 0, 2) ZEND_ARG_INFO(0, link) ZEND_ARG_INFO(0, result) ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_next_reference, 0, 0, 2) ZEND_ARG_INFO(0, link) ZEND_ARG_INFO(0, entry) ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_REFERENCE) +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_REFERENCE) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_reference, 0, 3, _IS_BOOL, 0) ZEND_ARG_INFO(0, link) ZEND_ARG_INFO(0, entry) @@ -264,7 +264,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_reference, 0, 3, _IS_ ZEND_END_ARG_INFO() #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_RESULT) +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_RESULT) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_result, 0, 3, _IS_BOOL, 0) ZEND_ARG_INFO(0, link) ZEND_ARG_INFO(0, result) @@ -398,28 +398,28 @@ ZEND_FUNCTION(ldap_control_paged_result); #if defined(LDAP_CONTROL_PAGEDRESULTS) ZEND_FUNCTION(ldap_control_paged_result_response); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FUNCTION(ldap_rename); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FUNCTION(ldap_rename_ext); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FUNCTION(ldap_get_option); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FUNCTION(ldap_set_option); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FUNCTION(ldap_first_reference); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FUNCTION(ldap_next_reference); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_REFERENCE) +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_REFERENCE) ZEND_FUNCTION(ldap_parse_reference); #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_RESULT) +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_RESULT) ZEND_FUNCTION(ldap_parse_result); #endif #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC) @@ -504,28 +504,28 @@ static const zend_function_entry ext_functions[] = { #if defined(LDAP_CONTROL_PAGEDRESULTS) ZEND_DEP_FE(ldap_control_paged_result_response, arginfo_ldap_control_paged_result_response) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FE(ldap_rename, arginfo_ldap_rename) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FE(ldap_rename_ext, arginfo_ldap_rename_ext) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FE(ldap_get_option, arginfo_ldap_get_option) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FE(ldap_set_option, arginfo_ldap_set_option) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FE(ldap_first_reference, arginfo_ldap_first_reference) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP ZEND_FE(ldap_next_reference, arginfo_ldap_next_reference) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_REFERENCE) +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_REFERENCE) ZEND_FE(ldap_parse_reference, arginfo_ldap_parse_reference) #endif -#if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_RESULT) +#if (LDAP_API_VERSION > 2000) || HAVE_ORALDAP && defined(HAVE_LDAP_PARSE_RESULT) ZEND_FE(ldap_parse_result, arginfo_ldap_parse_result) #endif #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)