moriyoshi Sun Jul 6 17:19:38 2003 EDT
Modified files:
/php-src/ext/iconv/tests iconv_mime_encode.phpt
Log:
Modified the test so it reflects the change to iconv_mime_decode()
Index: php-src/ext/iconv/tests/iconv_mime_encode.phpt
diff -u php-src/ext/iconv/tests/iconv_mime_encode.phpt:1.2
php-src/ext/iconv/tests/iconv_mime_encode.phpt:1.3
--- php-src/ext/iconv/tests/iconv_mime_encode.phpt:1.2 Sat May 31 03:17:35 2003
+++ php-src/ext/iconv/tests/iconv_mime_encode.phpt Sun Jul 6 17:19:38 2003
@@ -11,9 +11,16 @@
echo "$errno: $errmsg\n";
}
set_error_handler('my_error_handler');
+$preference = array(
+ "scheme" => "B",
+ "output-charset" => "ISO-2022-JP",
+ "input-charset" => "EUC-JP",
+ "line-break-chars" => "\n"
+);
for ($line_len= 0; $line_len < 80; ++$line_len) {
print "-------- line length=$line_len\n";
- $result = iconv_mime_encode("From",
"����ץ�ʸ����ץ�ʸ�������ܸ�ƥ�����", "B", "ISO-2022-JP", "EUC-JP", $line_len,
"\n");
+ $preference["line-length"] = $line_len;
+ $result = iconv_mime_encode("From",
"����ץ�ʸ����ץ�ʸ�������ܸ�ƥ�����", $preference);
var_dump($result);
if ($result !== false) {
list($max) = rsort(array_map("strlen", explode("\n", $result)));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php