opt
/
alt
/
php72
/
usr
/
share
/
pear
/
test
/
Mail_Mime
/
tests
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
class-filename.phpt
242 bytes
Rename
Delete
content_transfer_encoding.phpt
924 bytes
Rename
Delete
encoding_case.phpt
244 bytes
Rename
Delete
headers_with_mbstring.phpt
8.65 KB
Rename
Delete
headers_without_mbstring.phpt
8.32 KB
Rename
Delete
qp_encoding_test.phpt
3.47 KB
Rename
Delete
sleep_wakeup_EOL-bug3488-part1.phpt
545 bytes
Rename
Delete
sleep_wakeup_EOL-bug3488-part2.phpt
586 bytes
Rename
Delete
test_Bug_10596_1.phpt
296 bytes
Rename
Delete
test_Bug_10816_1.phpt
570 bytes
Rename
Delete
test_Bug_10999_1.phpt
491 bytes
Rename
Delete
test_Bug_11381.phpt
557 bytes
Rename
Delete
test_Bug_11731.phpt
684 bytes
Rename
Delete
test_Bug_12165.phpt
381 bytes
Rename
Delete
test_Bug_12385_1.phpt
539 bytes
Rename
Delete
test_Bug_12411.phpt
649 bytes
Rename
Delete
test_Bug_12466.phpt
445 bytes
Rename
Delete
test_Bug_13032.phpt
539 bytes
Rename
Delete
test_Bug_13444.phpt
670 bytes
Rename
Delete
test_Bug_13962.phpt
367 bytes
Rename
Delete
test_Bug_14529.phpt
521 bytes
Rename
Delete
test_Bug_14779.phpt
489 bytes
Rename
Delete
test_Bug_14780.phpt
351 bytes
Rename
Delete
test_Bug_15320.phpt
462 bytes
Rename
Delete
test_Bug_16539.phpt
7.34 KB
Rename
Delete
test_Bug_17025.phpt
412 bytes
Rename
Delete
test_Bug_17175.phpt
695 bytes
Rename
Delete
test_Bug_18083.phpt
592 bytes
Rename
Delete
test_Bug_18772.phpt
880 bytes
Rename
Delete
test_Bug_19497.phpt
547 bytes
Rename
Delete
test_Bug_20226.phpt
341 bytes
Rename
Delete
test_Bug_20273.phpt
302 bytes
Rename
Delete
test_Bug_20563.phpt
378 bytes
Rename
Delete
test_Bug_20564.phpt
270 bytes
Rename
Delete
test_Bug_21027.phpt
7.12 KB
Rename
Delete
test_Bug_21098.phpt
390 bytes
Rename
Delete
test_Bug_21205.phpt
1.28 KB
Rename
Delete
test_Bug_21206.phpt
590 bytes
Rename
Delete
test_Bug_21255.phpt
352 bytes
Rename
Delete
test_Bug_3513_1.phpt
475 bytes
Rename
Delete
test_Bug_3513_2.phpt
567 bytes
Rename
Delete
test_Bug_3513_3.phpt
631 bytes
Rename
Delete
test_Bug_7561_1.phpt
645 bytes
Rename
Delete
test_Bug_8386_1.phpt
551 bytes
Rename
Delete
test_Bug_8541_1.phpt
499 bytes
Rename
Delete
test_Bug_9722_1.phpt
360 bytes
Rename
Delete
test_Bug_GH16.phpt
1.56 KB
Rename
Delete
test_Bug_GH19.phpt
997 bytes
Rename
Delete
test_Bug_GH26.phpt
755 bytes
Rename
Delete
test_linebreak_dot.phpt
1.65 KB
Rename
Delete
test_linebreak_larger_76.phpt
2.25 KB
Rename
Delete
--TEST-- qp comprehensive test --SKIPIF-- --FILE-- <?php error_reporting(E_ALL); // ignore E_STRICT include("Mail/mimePart.php"); /** * Convenience function to make qp encoded output easier to verify * * @param string $text Input text to be encoded and printed * @param int $begin Start character to visibly print from * @param int $end Stop character to visibly print to * @param bool $special_chars Convert character such as linebreaks * etc. to visible replacements. * @param int $break Line length before soft break * */ function debug_print($text, $begin=False, $end=False, $special_chars=True, $break=76) { $begin = $begin ? $begin : strlen($text); $end = $end ? $end : strlen($text); for ($i=$begin; $i <= $end; $i++) { $input = substr($text, 0, $i); $output = Mail_mimePart::quotedPrintableEncode($input, $break); if ($special_chars) { $input_vis = str_replace("\t", '\t', str_replace("\n", '\n', str_replace("\r", '\r', $input))); } else { $input_vis = $input; } printf("input: %02d: %s\n", strlen($input), $input_vis); $lines = explode("\r\n", $output); for($j=0; $j < count($lines); $j++) { $line = $lines[$j]; if ($j + 1 < count($lines) && $special_chars) { $line_vis = str_replace("\t", '\t', $line).'\r\n'; } else { $line_vis = $line; } printf("output:%02d: %s\n", strlen($line), $line_vis); } print("---\n"); } } // Test linebreaks on regular long lines $text = '12345678901234567890123456789012345678901234567890123456789012345678901234567890'; debug_print($text, 74); // Test linebreaks on long line with dot at end. $text = '123456789.12'; debug_print($text, 10, False, False, 10); $text = "\tHere's\t\na tab.\n"; debug_print($text, False, False, True, 8); --EXPECT-- input: 74: 12345678901234567890123456789012345678901234567890123456789012345678901234 output:74: 12345678901234567890123456789012345678901234567890123456789012345678901234 --- input: 75: 123456789012345678901234567890123456789012345678901234567890123456789012345 output:75: 123456789012345678901234567890123456789012345678901234567890123456789012345 --- input: 76: 1234567890123456789012345678901234567890123456789012345678901234567890123456 output:76: 1234567890123456789012345678901234567890123456789012345678901234567890123456 --- input: 77: 12345678901234567890123456789012345678901234567890123456789012345678901234567 output:76: 123456789012345678901234567890123456789012345678901234567890123456789012345=\r\n output:02: 67 --- input: 78: 123456789012345678901234567890123456789012345678901234567890123456789012345678 output:76: 123456789012345678901234567890123456789012345678901234567890123456789012345=\r\n output:03: 678 --- input: 79: 1234567890123456789012345678901234567890123456789012345678901234567890123456789 output:76: 123456789012345678901234567890123456789012345678901234567890123456789012345=\r\n output:04: 6789 --- input: 80: 12345678901234567890123456789012345678901234567890123456789012345678901234567890 output:76: 123456789012345678901234567890123456789012345678901234567890123456789012345=\r\n output:05: 67890 --- input: 10: 123456789. output:10: 123456789. --- input: 11: 123456789.1 output:10: 123456789= output:04: =2E1 --- input: 12: 123456789.12 output:10: 123456789= output:05: =2E12 --- input: 16: \tHere's\t\na tab.\n output:08: \tHere's=\r\n output:03: =09\r\n output:06: a tab.\r\n output:00: ---
Save