summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-10-05 14:25:41 +0000
committerAntony Dovgal <tony2001@php.net>2006-10-05 14:25:41 +0000
commit864f182def0292f048be48487873361e87d618f1 (patch)
tree12a453a4510f0830911a5a48b9c2aa1836bcaaee /ext/imap
parent58eeb00bb33e567cd22cfe3a4c713f2d75768ecb (diff)
downloadphp-git-864f182def0292f048be48487873361e87d618f1.tar.gz
fix build with new version of c-client
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/php_imap.c5
1 files changed, 5 insertions, 0 deletions
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);