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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 - 36 = ?
Subscribe to this entry?

 
 [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: Mon May 20 17:01:34 2024 UTC