]> granicus.if.org Git - php/commitdiff
MFH: - Added check for IMAP 2004 versions
authorfoobar <sniper@php.net>
Tue, 11 Jan 2005 04:56:57 +0000 (04:56 +0000)
committerfoobar <sniper@php.net>
Tue, 11 Jan 2005 04:56:57 +0000 (04:56 +0000)
ext/imap/config.m4
ext/imap/php_imap.c

index 62c527912eb23bd60c7586fe731a2e79590f41d0..bc4d5e54acc6bba7dd9501d1e971166d6c3e22c5 100644 (file)
@@ -122,6 +122,12 @@ if test "$PHP_IMAP" != "no"; then
       fi
     done
 
+    dnl Check for c-client version 2004
+    AC_EGREP_HEADER(mail_fetch_overview_sequence, $IMAP_INC_DIR/mail.h, [
+      AC_DEFINE(HAVE_IMAP2004,1,[ ])
+    ])
+
+    dnl Check for c-client version 2001
     old_CPPFLAGS=$CPPFLAGS
     CPPFLAGS=-I$IMAP_INC_DIR
     AC_EGREP_CPP(this_is_true, [
index e51ca880642355b2a1b5ead5e809966152211223..19bbf33c2b44966d9578054c547c1416e7a3d6dd 100644 (file)
@@ -680,7 +680,9 @@ PHP_RSHUTDOWN_FUNCTION(imap)
 PHP_MINFO_FUNCTION(imap)
 {
        php_info_print_table_start();
-#if HAVE_IMAP2001
+#if HAVE_IMAP2004
+       php_info_print_table_row(2, "IMAP c-Client Version", "2004");
+#elif HAVE_IMAP2001
        php_info_print_table_row(2, "IMAP c-Client Version", "2001");
 #elif HAVE_IMAP2000
        php_info_print_table_row(2, "IMAP c-Client Version", "2000");
@@ -692,7 +694,7 @@ PHP_MINFO_FUNCTION(imap)
 #if HAVE_IMAP_SSL
        php_info_print_table_row(2, "SSL Support", "enabled");
 #endif
-#if HAVE_IMAP_KRB
+#if HAVE_IMAP_KRB && HAVE_IMAP_AUTH_GSS
        php_info_print_table_row(2, "Kerberos Support", "enabled");
 #endif
        php_info_print_table_end();