|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2013-02-07 01:14 UTC] slusarz at curecanti dot org
[2013-02-07 01:14 UTC] slusarz at curecanti dot org
-Package: Streams related
+Package: Filter related
[2013-02-07 01:14 UTC] slusarz at curecanti dot org
-Package: Filter related
+Package: Streams related
[2013-02-07 01:14 UTC] slusarz at curecanti dot org
[2013-02-07 19:41 UTC] slusarz at curecanti dot org
[2013-02-17 09:13 UTC] stas@php.net
[2013-02-25 02:28 UTC] slusarz at curecanti dot org
[2013-06-16 23:41 UTC] stas@php.net
[2013-06-16 23:41 UTC] stas@php.net
-Status: Open
+Status: Closed
[2013-06-16 23:41 UTC] stas@php.net
[2014-10-07 23:18 UTC] stas@php.net
[2014-10-07 23:18 UTC] stas@php.net
[2014-10-07 23:29 UTC] stas@php.net
[2014-10-07 23:29 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ The QP stream filter is incorrectly discarding whitespace at the end of the lines. The quoted_printable_encode() method does not have this issue. This is troublesome when attempting to save flowed text/plain data, as it causes the data to lose its flowed formatting. (I realize that RFC 3676 says flowed text SHOULD NOT be encoded in QP, but this is an (arguably) outdated policy restriction and not a technical restriction). Test script: --------------- <?php $data = "FIRST \r\nSECOND"; $fp = fopen('php://temp', 'w+'); stream_filter_append($fp, 'convert.quoted-printable-encode', STREAM_FILTER_WRITE, array( 'line-length' => 76 )); fwrite($fp, $data); rewind($fp); print quoted_printable_encode($data) . "\n"; print stream_get_contents($fp); Expected result: ---------------- FIRST=20 SECOND FIRST=20 SECOND Actual result: -------------- FIRST=20 SECOND FIRST SECOND