From: hjschock at danka dot de Operating system: Windows XP SP2 PHP version: 5.1.4 PHP Bug Type: Scripting Engine problem Bug description: base64_decode not working
Description: ------------ I have upgraded from PHP 5.0.1 to 5.1.4 (and also New Apache 2.2.2) The PHP script which runs without problems with old version, now makes problems. Example: echo "Line bevor base64_decode: String is". $PWD ."<br>"; $PWD = base64_decode($PWD); echo "Line after base_64_decode: String is" .$PWD ."<br>"; The first echo shows the variable $PWD correct, but after $PWD = base64_decode($PWD); the variable is empty. I switched back to my old Apache and PHP version => all ok Tried with Apache 2.0.55 and PHP 5.0.5 => all ok Something wrong with base_64_decode?? regards Hansjoerg Reproduce code: --------------- $PWD = "hu 5HPSaRWZKa62ONP2ycA=="; echo "Line bevor base64_decode: String is". $PWD ."<br>"; $PWD = base64_decode($PWD); echo "Line after base_64_decode: String is" .$PWD ."<br>"; Expected result: ---------------- After base64_decode we should have an output Actual result: -------------- nothing happens -- Edit bug report at http://bugs.php.net/?id=37896&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37896&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37896&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37896&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37896&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37896&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37896&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37896&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37896&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37896&r=support Expected behavior: http://bugs.php.net/fix.php?id=37896&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37896&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37896&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37896&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37896&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37896&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37896&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37896&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37896&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37896&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37896&r=mysqlcfg
