From: Antony Dovgal Date: Thu, 5 Oct 2006 14:25:41 +0000 (+0000) Subject: fix build with new version of c-client X-Git-Tag: php-5.2.0RC5~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=864f182def0292f048be48487873361e87d618f1;p=php fix build with new version of c-client --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 05cf6c2b74..f03276aea0 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2181,7 +2181,12 @@ PHP_FUNCTION(imap_utf8) dest.size = 0; cpytxt(&src, Z_STRVAL_PP(str), Z_STRLEN_PP(str)); + +#ifndef HAVE_NEW_MIME2TEXT utf8_mime2text(&src, &dest); +#else + utf8_mime2text(&src, &dest, U8T_CANONICAL); +#endif RETVAL_STRINGL(dest.data, dest.size, 1); if (dest.data) { free(dest.data);