summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug65483.phpt
blob: d214bbbbcc4a43e99ceae1ae0b8b1204fc5c71ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #65483: quoted-printable encode stream filter incorrectly encoding spaces
--FILE--
<?php

$data = 'a b=c d';

$fd = fopen('php://temp', 'w+');
fwrite($fd, $data);
rewind($fd);

$res = stream_filter_append($fd, 'convert.quoted-printable-encode', STREAM_FILTER_READ);
var_dump(stream_get_contents($fd, -1, 0));

fclose($fd);

?>
--EXPECT--
string(9) "a b=3Dc d"