|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39263 Enable image(gif|jpg|png) functions to save to a php stream
Submitted: 2006-10-26 08:54 UTC Modified: 2011-01-03 10:36 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: wb at pro-net dot co dot uk Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: * OS: *
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.
Block user comment
Status: Assign to:
Bug Type:
From: wb at pro-net dot co dot uk
New email:
PHP Version: OS:


 [2006-10-26 08:54 UTC] wb at pro-net dot co dot uk
It would be nice to be able to save a GD image directly to an already open php stream.

Reproduce code:

// $fp is any valid php stream resource.
// $im is a GD image resource.
imagepng($im, $fp);


Expected result:
Image saved using the stream $fp.

Actual result:
Nothing :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-26 12:43 UTC]
I cannot agree more. I have a patch for a general imageto function, it needs clean up and to be updated for the current head. I'm not sure when I will do it but this feature will be in php, and the sooner the better.
 [2008-08-17 11:32 UTC]
Pierre, are you still working on that bug or maybe you need some help?
 [2010-01-14 12:19 UTC] lgynove at 163 dot com
still not fix... three year
 [2010-12-20 14:18 UTC]
-Package: Feature/Change Request +Package: GD related -PHP Version: 5CVS, 6CVS +PHP Version: *
 [2011-01-03 10:36 UTC]
-Status: Assigned +Status: Closed
 [2011-01-03 10:36 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Feature implemented in trunk. You can get it using or windows binaries from (revision > 30719).
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 22:01:27 2024 UTC