Current Path : /compat/linux/proc/self/root/usr/local/share/pear/test/Mail_Mime/tests/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/share/pear/test/Mail_Mime/tests/test_Bug_7561_1.phpt |
--TEST-- Bug #7561 Mail_mimePart::_quotedPrintableEncode() misbehavior with mbstring overload --SKIPIF-- <?php include "PEAR.php"; if (!extension_loaded('mbstring')){ if (!PEAR::loadExtension('mbstring')){ print('SKIP could not load mbstring module'); } } --FILE-- <?php ini_set('mbstring.language', 'Neutral'); // this isn't working because this option has PHP_INI_SYSTEM mode ini_set('mbstring.func_overload', 6); ini_set('mbstring.internal_encoding', 'UTF-8'); ini_set('mbstring.http_output', 'UTF-8'); include("Mail/mimePart.php"); $part = new Mail_mimePart('', array('eol'=>"\n")); // string is UTF-8 encoded $input = "Micha\xC3\xABl \xC3\x89ric St\xC3\xA9phane"; $rv = $part->_quotedPrintableEncode($input); echo $rv, "\n"; --EXPECT-- Micha=C3=ABl =C3=89ric St=C3=A9phane