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

index 3a9c281046a49e8b6ebeb2319cb167009b8b596a..d9fe3cc6d71f32a8e74e96454ca2a022770b8202 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 a81a0137ca4cd0aaf190cfcb541a9dd7cd5a805c..1dbe3f46b4dfe4aa1f6189b12bfd24b4729d2dfb 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();