diff options
author | Pierre Joye <pajoye@php.net> | 2008-06-02 10:25:54 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2008-06-02 10:25:54 +0000 |
commit | 57bcc1689685a41a3a58e1cf47a01404c6c73db6 (patch) | |
tree | 0e6bbf88b12dbce642a41b4840920af00a188d5e /ext/ldap/ldap.c | |
parent | 930d9e47c95b1e9013a6829e41312dcd6223458a (diff) | |
download | php-git-57bcc1689685a41a3a58e1cf47a01404c6c73db6.tar.gz |
- reintroduce the x.y.z version string info (a bit nicer to make the other guy happier)
- silent warning (windows only and don't remove it, thanks)
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r-- | ext/ldap/ldap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 66d2a33584..a5f6760f60 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -49,7 +49,9 @@ #if HAVE_NSLDAP #include <winsock2.h> #endif +#ifndef strdup #define strdup _strdup +#endif #undef WINDOWS #undef strcasecmp #undef strncasecmp @@ -254,10 +256,14 @@ PHP_MINFO_FUNCTION(ldap) #ifdef LDAP_VENDOR_NAME php_info_print_table_row(2, "Vendor Name", LDAP_VENDOR_NAME); #endif - + #ifdef LDAP_VENDOR_VERSION snprintf(tmp, 31, "%d", LDAP_VENDOR_VERSION); php_info_print_table_row(2, "Vendor Version", tmp); + + snprintf(tmp, 31, "%d.%d.%d", LDAP_VENDOR_VERSION_MAJOR, + LDAP_VENDOR_VERSION_MINOR, LDAP_VENDOR_VERSION_PATCH); + php_info_print_table_row(2, "Vendor Version String", tmp); #endif #if HAVE_NSLDAP |