1--TEST--
2quoted_printable_encode() tests - 2
3--FILE--
4<?php
5
6$s = str_repeat("\0", 200);
7var_dump($d = quoted_printable_encode($s));
8var_dump(quoted_printable_decode($d));
9
10$s = str_repeat("строка в юникоде", 50);
11var_dump($d = quoted_printable_encode($s));
12var_dump(quoted_printable_decode($d));
13
14class foo {
15    function __toString() {
16        return "this is a foo";
17    }
18}
19
20$o = new Foo;
21var_dump(quoted_printable_encode($o));
22
23echo "Done\n";
24?>
25--EXPECTF--
26string(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"
34string(200) "%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0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2 =D1=8E=D0=BD=D0=B8=D0=BA=D0=BE=D0=B4=D0=B5=D1=81=
92=D1=82=D1=80=D0=BE=D0=BA=D0=B0 =D0=B2 =D1=8E=D0=BD=D0=B8=D0=BA=D0=BE=D0=
93=B4=D0=B5=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B0 =D0=B2 =D1=8E=D0=BD=D0=B8=
94=D0=BA=D0=BE=D0=B4=D0=B5=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B0 =D0=B2 =D1=
95=8E=D0=BD=D0=B8=D0=BA=D0=BE=D0=B4=D0=B5"
96string(1500) "строка в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникодестрока в юникоде"
97string(13) "this is a foo"
98Done
99