#36946 [NEW]: base64_decode doesn't work
| From: | kirlo at gmx dot de | Date: | Sun, 02 Apr 2006 08:49:28 +0000 |
| Subject: | #36946 [NEW]: base64_decode doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-95199@lists.php.net to get a copy of this message | ||
From: kirlo at gmx dot de
Operating system: windows & debian
PHP version: 5.1.2
PHP Bug Type: *URL Functions
Bug description: base64_decode doesn't work
Description:
------------
we're encoding some text data with base64 with a small application (not
php) on a client pc, then we'll send it to a webserver via POST or GET.
the PHP script is fetching POST or GET without any problems but it does
not correctly perform the base64_decode operation. we checked our base64
encoded text with other tools (for example
http://makcoder.sourceforge.net/demo/base64.php
) and they had no
problems!
this system works with the latest php4 version but it does not work with
the latest php5 version (on the earlier version it also worked well!). i
already tried the latest CVS snapshot but it didn't worked either.
Reproduce code:
---------------
very simple:
echo base64_decode($_POST[base64text]);
Expected result:
----------------
here are three files
the original text:
http://t-man.isr-clan.ath.cx/phpbugreport/original.txt
the base64 encoded text (base64 encoding performed by our client
application):
http://t-man.isr-clan.ath.cx/phpbugreport/base64encoded.txt
the base64_decode output:
http://t-man.isr-clan.ath.cx/phpbugreport/base64_decode-output.txt
in this case the messed up text is at the end of the text. sometimes the
messed up text is starting at the first 2 or 3 lines.
--
Edit bug report at http://bugs.php.net/?id=36946&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36946&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36946&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36946&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36946&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36946&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36946&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36946&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36946&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36946&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36946&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36946&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36946&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36946&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36946&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36946&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36946&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36946&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36946&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36946&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36946&r=mysqlcfg