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

index 53b2c43b5a1c0dc8950dfb049d68cf7ce12b5cea..41b5dca72b0bed1a47931b2d8992ecd65ba94cc0 100644 (file)
@@ -110,6 +110,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 9d7958ebba3967b167d8790ed0e98c664ebc6107..05447abc81c714a8e1032818ff7b2564348a6a11 100644 (file)
@@ -694,7 +694,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");
@@ -706,7 +708,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();