php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10161 base64_decode doesn't work correctly
Submitted: 2001-04-04 11:14 UTC Modified: 2001-04-04 12:20 UTC
From: kenji at earthlink dot net Assigned:
Status: Closed Package: *URL Functions
PHP Version: 4.0.4pl1 OS: Linux 2.2.12
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kenji at earthlink dot net
New email:
PHP Version: OS:

 

 [2001-04-04 11:14 UTC] kenji at earthlink dot net
Although base64_encode("960") produces the string "OTYw", 
base64_decode("OTYw") doesn't produce "960".

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-04 11:37 UTC] sniper@php.net
This works for me just fine:

<?php
echo base64_encode("960");
echo "\n";
echo base64_decode("OTYw");
?>

It prints out "OTYw" and "960".

960 as ninesixzero.

This is with latest CVS. You can try the latest snapshot
from http://snaps.php.net/ to verify.

--Jani

 [2001-04-04 12:01 UTC] sniper@php.net
Why did you change this to open without giving any feedback?

--Jani

 [2001-04-04 12:01 UTC] sniper@php.net
Why did you change this to open without giving any feedback?

--Jani

 [2001-04-04 12:07 UTC] kenji at earthlink dot net
couldn't reproduce it anymore :)
 [2001-04-04 12:20 UTC] kenji at earthlink dot net
couldn't reproduce it anymore :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 02:01:30 2024 UTC