#32473 [NEW]: base64_encode cuts text - input to 2933 Characters

From: Date: Mon, 28 Mar 2005 14:27:03 +0000
Subject: #32473 [NEW]: base64_encode cuts text - input to 2933 Characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75928@lists.php.net to get a copy of this message
From: f-bischof at versanet dot de Operating system: Win XP Sp2 PHP version: 4.3.10 PHP Bug Type: Apache related Bug description: base64_encode cuts text - input to 2933 Characters Description: ------------ I use Apache/1.3.31 (Win32) PHP/4.3.10 mod_ssl/2.8.18 OpenSSL/0.9.7d I host a website: http://pocketwelt.dyndns.org If someone writes a forum-article that is longer then 2933 Bytes and i try to save the input (base64_encoded) in my database, and then reload the article, it´s truncated after 2933 bytes. The rest deleted... If i write the article without base64_encoding, i get so much characters in the databse like i want. The Bug seems only appear if i use base64_encoding. (also tested with PHP 5.05 with the same result...) Reproduce code: --------------- $text=base64_encode($text); Text should be about 4 or 5 KB to see the bug ! Expected result: ---------------- Truncated Text afeter 2933 Bytes -- Edit bug report at http://bugs.php.net/?id=32473&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32473&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32473&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32473&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32473&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32473&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32473&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32473&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32473&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32473&r=support Expected behavior: http://bugs.php.net/fix.php?id=32473&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32473&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32473&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32473&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32473&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32473&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32473&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32473&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32473&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32473&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32473&r=mysqlcfg

« previous php.bugs (#75928) next »