mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
20 lines
373 B
PHP
20 lines
373 B
PHP
--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"
|