From: Andi Gutmans Date: Mon, 3 Apr 2000 22:00:18 +0000 (+0000) Subject: - Fix build bug X-Git-Tag: php-4.0RC2~503 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3dd529c23483313311b9e095502743cbd311ab8;p=php - Fix build bug --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 5980a53bc9..364a9d8fca 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -156,11 +156,15 @@ PHP_MINFO_FUNCTION(ldap) #if HAVE_NSLDAP LDAPVersion ver; double SDKVersion; - /* Print version information */ - SDKVersion = ldap_version( &ver ); #endif + LDAPLS_FETCH(); +#if HAVE_NSLDAP +/* Print version information */ + SDKVersion = ldap_version( &ver ); +#endif + if (LDAPG(max_links) == -1) { strcpy(maxl, "Unlimited"); } else {