#32473 [Opn->Fbk]: base64_encode cuts text - input to 2933 Characters
| From: | sniper@php.net | Date: | Mon, 28 Mar 2005 22:38:39 +0000 |
| Subject: | #32473 [Opn->Fbk]: base64_encode cuts text - input to 2933 Characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75936@lists.php.net to get a copy of this message | ||
ID: 32473
Updated by: sniper@php.net
Reported By: f-bischof at versanet dot de
-Status: Open
+Status: Feedback
Bug Type: Apache related
Operating System: Win XP Sp2
PHP Version: 4.3.10
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-03-28 16:27:02] f-bischof at versanet dot de
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 this bug report at http://bugs.php.net/?id=32473&edit=1