Annotation of embedaddon/php/ext/standard/tests/streams/bug65483.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #65483: quoted-printable encode stream filter incorrectly encoding spaces
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $data = 'a b=c d';
                      7: 
                      8: $fd = fopen('php://temp', 'w+');
                      9: fwrite($fd, $data);
                     10: rewind($fd);
                     11: 
                     12: $res = stream_filter_append($fd, 'convert.quoted-printable-encode', STREAM_FILTER_READ);
                     13: var_dump(stream_get_contents($fd, -1, 0));
                     14: 
                     15: fclose($fd);
                     16: 
                     17: ?>
                     18: --EXPECT--
                     19: string(9) "a b=3Dc d"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>