From: Antony Dovgal Date: Thu, 5 Oct 2006 14:28:33 +0000 (+0000) Subject: MFB: fix build with new c-client X-Git-Tag: RELEASE_1_0_0RC1~1408 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e93802dc51c3e452618410eb0e063ebbfd1a8675;p=php MFB: fix build with new c-client --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index d01fe702ad..0c7f768dfe 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2177,7 +2177,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);