]> granicus.if.org Git - php/commitdiff
MFB: fix build with new c-client
authorAntony Dovgal <tony2001@php.net>
Thu, 5 Oct 2006 14:28:33 +0000 (14:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 5 Oct 2006 14:28:33 +0000 (14:28 +0000)
ext/imap/php_imap.c

index d01fe702ad8e1aecc5a1ad1be3a2067a8b257035..0c7f768dfeb5b9617c2e309c72f30d9f6ca38613 100644 (file)
@@ -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);