Annotation of embedaddon/php/ext/standard/tests/strings/quoted_printable_encode_002.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: quoted_printable_encode() tests - 2
3: --FILE--
4: <?php
5:
6: $s = str_repeat("\0", 200);
7: var_dump($d = quoted_printable_encode($s));
8: var_dump(quoted_printable_decode($d));
9:
10: $s = str_repeat("строка в юникоде", 50);
11: var_dump($d = quoted_printable_encode($s));
12: var_dump(quoted_printable_decode($d));
13:
14: class foo {
15: function __toString() {
16: return "this is a foo";
17: }
18: }
19:
20: $o = new Foo;
21: var_dump(quoted_printable_encode($o));
22:
23: echo "Done\n";
24: ?>
1.1.1.2 ! misho 25: --EXPECT--
1.1 misho 26: string(621) "=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
27: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
28: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
29: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
30: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
31: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
32: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
33: =00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00"
34: string(200) "