Annotation of embedaddon/php/ext/standard/tests/strings/quoted_printable_decode_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test quoted_printable_decode() function : basic functionality
3: --FILE--
4: <?php
5: /* Prototype : string quoted_printable_decode ( string $str )
6: * Description: Convert a quoted-printable string to an 8 bit string
7: * Source code: ext/standard/string.c
8: */
9:
10: echo "*** Testing quoted_printable_decode() : basic functionality ***\n";
11:
12: $str = "=FAwow-factor=C1=d0=D5=DD=C5=CE=CE=D9=C5=0A=
13: =20=D4=cf=D2=C7=CF=D7=D9=C5=
14: =20=
15: =D0=
16: =D2=CF=C5=CB=D4=D9";
17:
18: var_dump(bin2hex(quoted_printable_decode($str)));
19:
20: ?>
21: ===DONE===
22: --EXPECTF--
23: *** Testing quoted_printable_decode() : basic functionality ***
24: string(76) "fa776f772d666163746f72c1d0d5ddc5ceced9c50a20d4cfd2c7cfd7d9c520d0d2cfc5cbd4d9"
25: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>