|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 16:01:33 2024 UTC