ID:               39412
 User updated by:  phpbugs at staznosti dot sk
 Reported By:      phpbugs at staznosti dot sk
 Status:           Closed
 Bug Type:         *URL Functions
 Operating System: Linux
 PHP Version:      4.4.4
 New Comment:

I think this should get fixed in 4.x branch, too, as many people don't
want (you can guess why - incompatiblity 4.x/5.x is the thing) or are
not able to switch.


Previous Comments:
------------------------------------------------------------------------

[2006-11-07 14:20:21] [EMAIL PROTECTED]

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Will not get fixed in 4.4, but already fixed in 5.2.

php -r 'var_dump(base64_decode("This is short string!", 
true));'
bool(false)

------------------------------------------------------------------------

[2006-11-07 10:01:35] phpbugs at staznosti dot sk

Description:
------------
base64_decode does not return FALSE on failure, return garbled (binary)
text instead

Reproduce code:
---------------
$string="This is short string!";

$test=base64_decode($string);

if ($test===FALSE) echo 'text is not base64 encoded';
else echo $test;

Expected result:
----------------
FALSE should be returned

Actual result:
--------------
garbled text / binary string


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39412&edit=1

Reply via email to