php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1147 base64_decode doesn't work
Submitted: 1999-02-14 11:27 UTC Modified: 1999-03-02 07:05 UTC
From: o dot lau at t-online dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.6 OS: Linux-2.2.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: o dot lau at t-online dot de
New email:
PHP Version: OS:

 

 [1999-02-14 11:27 UTC] o dot lau at t-online dot de
Variable $g3 contains base64 encoded GIF data. 


$fp = fopen(tempnam("/tmp", "img"), "w");
fwrite($fp, base64_decode($g3));
fclose($fp);

results in empty file (i.e. null byte size file).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-03-02 07:05 UTC] sas
This must work. Flush the output to the browser, if you don't believe it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 12:01:32 2024 UTC