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

From: Date: Tue, 04 Feb 2020 19:08:25 +0000
Subject: Bug #79226 [NEW]: quoted_printable_encode() does not fill a 76-character line
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225363@lists.php.net to get a copy of this message
From: bugzilla77 at gmail dot com Operating system: Windows 10 Pro 1909 PHP version: 7.4.2 Package: *General Issues Bug Type: Bug Bug description:quoted_printable_encode() does not fill a 76-character line 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 bug report at https://bugs.php.net/bug.php?id=79226&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79226&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79226&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79226&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79226&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79226&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79226&r=support Expected behavior: https://bugs.php.net/fix.php?id=79226&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79226&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79226&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79226&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79226&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79226&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79226&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79226&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79226&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79226&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79226&r=mysqlcfg

« previous php.bugs (#225363) next »