|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30658 Temporary files are not deleted
Submitted: 2004-11-02 11:16 UTC Modified: 2004-11-02 17:43 UTC
From: RajivK at Pollit dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.3.9 OS: Linux (Debian Stable)
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.
Bug Type:
From: RajivK at Pollit dot com
New email:
PHP Version: OS:


 [2004-11-02 11:16 UTC] RajivK at Pollit dot com
A temprorary file is create in gd.c line 1667.  This file is never deleted.  Today I found 10 thousand files in /tmp on each server.

A comment on line 1720 says 

"the temporary file is automatically deleted" 

However, this is not the case.  I can't find any code anywhere that would delete the tmp file.  I also checked the lastest cvs. 


I fixed the problem by rolling back to gd.c version which works for me. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-02 17:43 UTC]
This bug has been fixed in CVS.

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.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Nov 27 05:05:53 2022 UTC