summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Schneider2018-10-15 13:53:23 +0200
committerChristian Schneider2018-10-15 13:53:23 +0200
commit26515c537900698895e29f062aa2c219f56b0878 (patch)
treed127fa44b458377feb5fb4297bce5cf0ac691086 /test
parente86a9a9ffc312e1f1b239ea4ec3d2b613a065a10 (diff)
downloaditools-26515c537900698895e29f062aa2c219f56b0878.tar.gz
itools-26515c537900698895e29f062aa2c219f56b0878.tar.bz2
itools-26515c537900698895e29f062aa2c219f56b0878.zip
Extend test for bug fixed in 7.2.11
Diffstat (limited to 'test')
-rwxr-xr-xtest/it_mail.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/it_mail.t b/test/it_mail.t
index 486dee8..9c882b8 100755
--- a/test/it_mail.t
+++ b/test/it_mail.t
@@ -20,7 +20,9 @@ is(
is(
$mail->header_escape('search.ch e-mail code d\'accès'),
- '=?utf-8?B?c2VhcmNoLmNoIGUtbWFpbCBjb2RlIGQnYWNjw6hz?=',
+ version_compare(PHP_VERSION, '7.2.11') < 0
+ ? '=?utf-8?B?c2VhcmNoLmNoIGUtbWFpbCBjb2RlIGQnYWNjw6hz?='
+ : '=?utf-8?Q?search.ch=20e-mail=20code=20d\'acc=C3=A8s?=',
"Use base64 encoding when php iconv fails with quoted-printable (workaround for php bug #53891)"
);