20 lines
373 B
Plaintext
20 lines
373 B
Plaintext
|
|
--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"
|