summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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)"
);