From:             clubsky at gmail dot com
Operating system: freebsd 4.10
PHP version:      4.4.1
PHP Bug Type:     Scripting Engine problem
Bug description:  base64_decode() error

Description:
------------
http://domain/test.php?s=c2Nob29sbmFtZT3O0rXEyMvJ+sK3yc+1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

but $_GET[s] value:

c2Nob29sbmFtZT3O0rXEyMvJ sK3yc
1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

base64_decode() return value error

Reproduce code:
---------------
http://domain/test.php?s=c2Nob29sbmFtZT3O0rXEyMvJ+sK3yc+1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

but $_GET[s] value:

c2Nob29sbmFtZT3O0rXEyMvJ sK3yc
1xLCuus263iZzY2hvb2xpZD0xNzg3ODgmdmFsaWRhdGU9Y2x1YnNreQ==

base64_decode() return value error

Expected result:
----------------
base64_decode() 

schoolname=ÎÒµÄÈËÉú·Éϵİ®ºÍºÞ&schoolid=178788

Actual result:
--------------
chaos code

-- 
Edit bug report at http://bugs.php.net/?id=35256&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35256&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35256&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35256&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35256&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35256&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35256&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35256&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35256&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35256&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35256&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35256&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35256&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35256&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35256&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35256&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35256&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35256&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35256&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35256&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35256&r=mysqlcfg

Reply via email to