summaryrefslogtreecommitdiff
path: root/ext/iconv/tests/iconv_mime_encode.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/iconv/tests/iconv_mime_encode.phpt')
-rw-r--r--ext/iconv/tests/iconv_mime_encode.phpt30
1 files changed, 15 insertions, 15 deletions
diff --git a/ext/iconv/tests/iconv_mime_encode.phpt b/ext/iconv/tests/iconv_mime_encode.phpt
index e4be799915..6f4ba1c7a9 100644
--- a/ext/iconv/tests/iconv_mime_encode.phpt
+++ b/ext/iconv/tests/iconv_mime_encode.phpt
@@ -8,27 +8,27 @@ iconv.internal_charset=iso-8859-1
<?php
function my_error_handler($errno, $errmsg, $filename, $linenum)
{
- echo "$errno: $errmsg\n";
+ 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"
+ "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";
- $preference["line-length"] = $line_len;
- $result = iconv_mime_encode("From", "サンプル文字列サンプル文字列日本語テキスト", $preference);
- var_dump($result);
- if ($result !== false) {
+ print "-------- line length=$line_len\n";
+ $preference["line-length"] = $line_len;
+ $result = iconv_mime_encode("From", "サンプル文字列サンプル文字列日本語テキスト", $preference);
+ var_dump($result);
+ if ($result !== false) {
$max = max(array_map("strlen", explode("\n", $result)));
- print "-------- ";
- var_dump(($max <= $line_len));
- } else {
- print "-------- \n";
- }
+ print "-------- ";
+ var_dump(($max <= $line_len));
+ } else {
+ print "-------- \n";
+ }
}
?>
--EXPECTF--