summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/ldap/ldap.c8
1 files changed, 6 insertions, 2 deletions
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 {