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