Return to bug65483.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / streams |
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"