note 127043 added to filters.convert
| From: | marcus.synchromedia.co.uk via php-notes | Date: | Tue, 10 May 2022 09:50:45 +0000 |
| Subject: | note 127043 added to filters.convert | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218367@lists.php.net to get a copy of this message | ||
It's not quite obvious what all the available parameters are for
convert.quoted-printable-encode. If you want the stream filter to act the same way as the
quoted_printable_encode function, you need these extra params, for example:
stream_filter_append(
STDOUT,
'convert.quoted-printable-encode',
STREAM_FILTER_WRITE,
[
'line-break-chars' => PHP_EOL,
'line-length' => 75,
]
);
echo stream_copy_to_stream(STDIN, STDOUT);
Without these extra params set, you may get no wrapping at all, or wrapping using the wrong line
break sequence.
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.47 (proxied: 2a01:e0a:4c6:2f80:d094:bb32:a6b3:cf34)
----
Manual Page -- https://php.net/manual/en/filters.convert.php
Edit -- https://main.php.net/note/edit/127043
Del: integrated -- https://main.php.net/note/delete/127043/integrated
Del: useless -- https://main.php.net/note/delete/127043/useless
Del: bad code -- https://main.php.net/note/delete/127043/bad+code
Del: spam -- https://main.php.net/note/delete/127043/spam
Del: non-english -- https://main.php.net/note/delete/127043/non-english
Del: in docs -- https://main.php.net/note/delete/127043/in+docs
Del: other reasons-- https://main.php.net/note/delete/127043
Reject -- https://main.php.net/note/reject/127043
Search -- https://main.php.net/manage/user-notes.php