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

index 05cf6c2b7450d0dcca3ee7a3659306be59e1de9e..f03276aea078c28536acb7749dbba551b82e18c1 100644 (file)
@@ -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);