ID: 36591 Updated by: [EMAIL PROTECTED] Reported By: hariprakash at cynaptix dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Windows 2000 PHP Version: 4.4.2 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: ------------------------------------------------------------------------ [2006-03-02 15:30:30] hariprakash at cynaptix dot com Description: ------------ base64_decode() gives a same output of '4' for two inputs 'NA==' and 'NO'. But base64_encode() gives output of 'NA==' for input '4'. I am currently using PHP 4.2.3 . Reproduce code: --------------- // 4 as str. echo "4-". base64_encode( '4'); // or as int. echo "4-". base64_encode( 4); echo "<br />NO-". base64_decode( 'NO') ."-"; echo "<br />". base64_decode( base64_encode( '4')); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36591&edit=1