#32473 [Fbk->Opn]: base64_encode cuts text - input to 2933 Characters
| From: | f-bischof at versanet dot de | Date: | Tue, 29 Mar 2005 16:11:45 +0000 |
| Subject: | #32473 [Fbk->Opn]: base64_encode cuts text - input to 2933 Characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75992@lists.php.net to get a copy of this message | ||
ID: 32473
User updated by: f-bischof at versanet dot de
Reported By: f-bischof at versanet dot de
-Status: Feedback
+Status: Open
Bug Type: Apache related
Operating System: Win XP Sp2
-PHP Version: 4.3.10
+PHP Version: PHP Version 4.3.11RC2-dev
New Comment:
I have tried it with the announced latest stable version,
with the same result. Truncated after 2933 Bytes length.
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-03-29 00:38:38] sniper@php.net
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
------------------------------------------------------------------------
[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