xref: /PHP-7.4/ext/imap/tests/bug44098.phpt (revision 782352c5)
1--TEST--
2Bug #44098 (imap_utf8() returns only capital letters)
3--SKIPIF--
4<?php
5        if (!extension_loaded("imap")) {
6                die("skip imap extension not available");
7        }
8?>
9--FILE--
10<?php
11$exp = 'Luzon®14 dot CoM';
12$res = imap_utf8('=?iso-8859-1?b?THV6b26uMTQ=?= dot CoM');
13if ($res != $exp) {
14	echo "failed: got <$res>, expected <exp>\n";
15} else {
16	echo "ok";
17}
18?>
19--EXPECT--
20ok
21