From 26515c537900698895e29f062aa2c219f56b0878 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 15 Oct 2018 13:53:23 +0200 Subject: Extend test for bug fixed in 7.2.11 --- test/it_mail.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') 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)" ); -- cgit v1.2.3