$20 GRAYBYTE WORDPRESS FILE MANAGER $23

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php82/usr/share/pear/test/Mail_Mime/tests/

HOME
Current File : /opt/alt/php82/usr/share/pear/test/Mail_Mime/tests//test_linebreak_dot.phpt
--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
---


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 1.09 PM
root / root
0755
class-filename.phpt
0.236 KB
6 Apr 2023 3.34 PM
root / root
0644
content_transfer_encoding.phpt
0.902 KB
6 Apr 2023 3.34 PM
root / root
0644
encoding_case.phpt
0.238 KB
6 Apr 2023 3.34 PM
root / root
0644
headers_with_mbstring.phpt
8.647 KB
6 Apr 2023 3.34 PM
root / root
0644
headers_without_mbstring.phpt
8.317 KB
6 Apr 2023 3.34 PM
root / root
0644
qp_encoding_test.phpt
3.474 KB
6 Apr 2023 3.34 PM
root / root
0644
sleep_wakeup_EOL-bug3488-part1.phpt
0.532 KB
6 Apr 2023 3.34 PM
root / root
0644
sleep_wakeup_EOL-bug3488-part2.phpt
0.572 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_10596_1.phpt
0.289 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_10816_1.phpt
0.557 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_10999_1.phpt
0.479 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_11381.phpt
0.544 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_11731.phpt
0.668 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_12165.phpt
0.372 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_12385_1.phpt
0.526 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_12411.phpt
0.634 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_12466.phpt
0.435 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_13032.phpt
0.526 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_13444.phpt
0.654 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_13962.phpt
0.358 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_14529.phpt
0.509 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_14779.phpt
0.478 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_14780.phpt
0.343 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_15320.phpt
0.451 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_16539.phpt
7.337 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_17025.phpt
0.402 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_17175.phpt
0.679 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_18083.phpt
0.578 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_18772.phpt
0.859 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_19497.phpt
0.534 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_20226.phpt
0.333 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_20273.phpt
0.295 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_20563.phpt
0.369 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_20564.phpt
0.264 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_21027.phpt
7.124 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_21098.phpt
0.381 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_21205.phpt
1.279 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_21206.phpt
0.576 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_21255.phpt
0.344 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_3513_1.phpt
0.464 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_3513_2.phpt
0.554 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_3513_3.phpt
0.616 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_7561_1.phpt
0.63 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_8386_1.phpt
0.538 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_8541_1.phpt
0.487 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_9722_1.phpt
0.352 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_GH16.phpt
1.564 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_GH19.phpt
0.974 KB
6 Apr 2023 3.34 PM
root / root
0644
test_Bug_GH26.phpt
0.737 KB
6 Apr 2023 3.34 PM
root / root
0644
test_linebreak_dot.phpt
1.648 KB
6 Apr 2023 3.34 PM
root / root
0644
test_linebreak_larger_76.phpt
2.253 KB
6 Apr 2023 3.34 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF