Bug #79226 [Opn->Nab]: quoted_printable_encode() does not fill a 76-character line

From: Date: Tue, 04 Feb 2020 19:21:24 +0000
Subject: Bug #79226 [Opn->Nab]: quoted_printable_encode() does not fill a 76-character line
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225364@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79226&edit=1 ID: 79226 Updated by: requinix@php.net Reported by: bugzilla77 at gmail dot com Summary: quoted_printable_encode() does not fill a 76-character line -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: Windows 10 Pro 1909 PHP Version: 7.4.2 Block user comment: N Private report: N New Comment: See bug #62462 Previous Comments: ------------------------------------------------------------------------ [2020-02-04 19:08:25] bugzilla77 at gmail dot com Description: ------------ quoted_printable_encode() does not fill a 76-character line Test script: --------------- <?php header('Content-Type: text/plain'); $text='';for($x=0;$x<187;$x++){$text.=chr($x);} print(quoted_printable_encode($text)); ?> Expected result: ---------------- =00=01=02=03=04=05=06=07=08=09=0A=0B=0C=0D=0E=0F=10=11=12=13=14=15=16=17=18= =19=1A=1B=1C=1D=1E=1F !"#$%&'()*+,-./0123456789:;<=3D>?@ABCDEFGHIJKLMNOPQRS= TUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~=7F=80=81=82=83=84=85=86=87=88= =89=8A=8B=8C=8D=8E=8F=90=91=92=93=94=95=96=97=98=99=9A=9B=9C=9D=9E=9F=A0=A1= =A2=A3=A4=A5=A6=A7=A8=A9=AA=AB=AC=AD=AE=AF=B0=B1=B2=B3=B4=B5=B6=B7=B8=B9=BA= Actual result: -------------- =00=01=02=03=04=05=06=07=08=09=0A=0B=0C=0D=0E=0F=10=11=12=13=14=15=16=17=18= =19=1A=1B=1C=1D=1E=1F !"#$%&'()*+,-./0123456789:;<=3D>?@ABCDEFGHIJKLMNOPQRS= TUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~=7F=80=81=82=83=84=85=86=87= =88=89=8A=8B=8C=8D=8E=8F=90=91=92=93=94=95=96=97=98=99=9A=9B=9C=9D=9E=9F= =A0=A1=A2=A3=A4=A5=A6=A7=A8=A9=AA=AB=AC=AD=AE=AF=B0=B1=B2=B3=B4=B5=B6=B7= =B8=B9=BA ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79226&edit=1

« previous php.bugs (#225364) next »