/
opt
/
alt
/
php71
/
usr
/
share
/
pear
/
test
/
Mail_Mime
/
tests
/
/opt/alt/php71/usr/share/pear/test/Mail_Mime/tests
mkdir
upload
Name
Size
Mode
Actions
class-filename.phpt
242
0644
edit
dl
rm
content_transfer_encoding.phpt
924
0644
edit
dl
rm
encoding_case.phpt
244
0644
edit
dl
rm
headers_without_mbstring.phpt
8517
0644
edit
dl
rm
headers_with_mbstring.phpt
8855
0644
edit
dl
rm
qp_encoding_test.phpt
3557
0644
edit
dl
rm
sleep_wakeup_EOL-bug3488-part1.phpt
545
0644
edit
dl
rm
sleep_wakeup_EOL-bug3488-part2.phpt
586
0644
edit
dl
rm
test_Bug_3513_1.phpt
475
0644
edit
dl
rm
test_Bug_3513_2.phpt
567
0644
edit
dl
rm
test_Bug_3513_3.phpt
631
0644
edit
dl
rm
test_Bug_7561_1.phpt
645
0644
edit
dl
rm
test_Bug_8386_1.phpt
551
0644
edit
dl
rm
test_Bug_8541_1.phpt
499
0644
edit
dl
rm
test_Bug_9722_1.phpt
360
0644
edit
dl
rm
test_Bug_10596_1.phpt
296
0644
edit
dl
rm
test_Bug_10816_1.phpt
570
0644
edit
dl
rm
test_Bug_10999_1.phpt
491
0644
edit
dl
rm
test_Bug_11381.phpt
557
0644
edit
dl
rm
test_Bug_11731.phpt
684
0644
edit
dl
rm
test_Bug_12165.phpt
381
0644
edit
dl
rm
test_Bug_12385_1.phpt
539
0644
edit
dl
rm
test_Bug_12411.phpt
649
0644
edit
dl
rm
test_Bug_12466.phpt
445
0644
edit
dl
rm
test_Bug_13032.phpt
539
0644
edit
dl
rm
test_Bug_13444.phpt
670
0644
edit
dl
rm
test_Bug_13962.phpt
367
0644
edit
dl
rm
test_Bug_14529.phpt
521
0644
edit
dl
rm
test_Bug_14779.phpt
489
0644
edit
dl
rm
test_Bug_14780.phpt
351
0644
edit
dl
rm
test_Bug_15320.phpt
462
0644
edit
dl
rm
test_Bug_16539.phpt
7513
0644
edit
dl
rm
test_Bug_17025.phpt
412
0644
edit
dl
rm
test_Bug_17175.phpt
695
0644
edit
dl
rm
test_Bug_18083.phpt
592
0644
edit
dl
rm
test_Bug_18772.phpt
880
0644
edit
dl
rm
test_Bug_19497.phpt
547
0644
edit
dl
rm
test_Bug_20226.phpt
341
0644
edit
dl
rm
test_Bug_20273.phpt
302
0644
edit
dl
rm
test_Bug_20563.phpt
378
0644
edit
dl
rm
test_Bug_20564.phpt
270
0644
edit
dl
rm
test_Bug_21027.phpt
7295
0644
edit
dl
rm
test_Bug_21098.phpt
390
0644
edit
dl
rm
test_Bug_21205.phpt
1310
0644
edit
dl
rm
test_Bug_21206.phpt
590
0644
edit
dl
rm
test_Bug_21255.phpt
352
0644
edit
dl
rm
test_Bug_GH16.phpt
1602
0644
edit
dl
rm
test_Bug_GH19.phpt
997
0644
edit
dl
rm
test_Bug_GH26.phpt
755
0644
edit
dl
rm
test_linebreak_dot.phpt
1688
0644
edit
dl
rm
test_linebreak_larger_76.phpt
2307
0644
edit
dl
rm
Edit:
/opt/alt/php71/usr/share/pear/test/Mail_Mime/tests/test_linebreak_dot.phpt
(1688B)
--TEST-- Test for correct "." encoding when doing linebreaks --SKIPIF-- --FILE-- <?php error_reporting(E_ALL); // ignore E_STRICT include("Mail/mime.php"); $text = '0123456789012345678901234567890123456789012345678901234567890123456789012...6'; $params = Array( 'content_type' => 'text/plain', 'encoding' => 'quoted-printable', ); for ($i=74; $i <= strlen($text); $i++) { $input = substr($text, 0, $i); $mimePart = new Mail_mimePart($input, $params); $encoded = $mimePart->encode(); $output = $encoded['body']; printf("input: %02d: %s\n", strlen($input), $input); $lines = explode("\r\n", $output); for($j=0; $j < count($lines); $j++) { $line = $lines[$j]; if ($j + 1 < count($lines)) { $line_vis = $line.'\r\n'; } else { $line_vis = $line; } printf("output:%02d: %s\n", strlen($line), $line_vis); } print("---\n"); } --EXPECT-- input: 74: 0123456789012345678901234567890123456789012345678901234567890123456789012. output:74: 0123456789012345678901234567890123456789012345678901234567890123456789012. --- input: 75: 0123456789012345678901234567890123456789012345678901234567890123456789012.. output:75: 0123456789012345678901234567890123456789012345678901234567890123456789012.. --- input: 76: 0123456789012345678901234567890123456789012345678901234567890123456789012... output:76: 0123456789012345678901234567890123456789012345678901234567890123456789012... --- input: 77: 0123456789012345678901234567890123456789012345678901234567890123456789012...6 output:76: 0123456789012345678901234567890123456789012345678901234567890123456789012..=\r\n output:04: =2E6 ---
Save
cmd:
run