MFB: Fixed bug #38941 (imap extension does not compile against new version

of the imap library).
This commit is contained in:
Ilia Alshanetsky 2006-09-24 18:06:53 +00:00
parent a515fde08a
commit 9f21967f83
2 changed files with 9 additions and 0 deletions

View File

@ -114,6 +114,11 @@ if test "$PHP_IMAP" != "no"; then
AC_EGREP_HEADER(mail_fetch_overview_sequence, $IMAP_INC_DIR/mail.h, [
AC_DEFINE(HAVE_IMAP2004,1,[ ])
])
dnl Check for new version of the utf8_mime2text() function
AC_EGREP_HEADER(mail_append_set, $IMAP_INC_DIR/mail.h, [
AC_DEFINE(HAVE_NEW_MIME2TEXT,1,[ ])
])
dnl Check for c-client version 2001
old_CPPFLAGS=$CPPFLAGS

View File

@ -75,7 +75,11 @@ static char *php_mail_gets(readfn_t f, void *stream, unsigned long size, GETS_DA
void rfc822_date(char *date);
char *cpystr(const char *str);
char *cpytxt(SIZEDTEXT *dst, char *text, unsigned long size);
#ifndef HAVE_NEW_MIME2TEXT
long utf8_mime2text(SIZEDTEXT *src, SIZEDTEXT *dst);
#else
long utf8_mime2text (SIZEDTEXT *src, SIZEDTEXT *dst, long flags);
#endif
unsigned long find_rightmost_bit(unsigned long *valptr);
void fs_give(void **block);
void *fs_get(size_t size);