php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31572 Temporary files are not deleted
Submitted: 2005-01-16 16:12 UTC Modified: 2005-02-28 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: teasoft at 21cn dot com Assigned: iliaa (profile)
Status: No Feedback Package: GD related
PHP Version: 4CVS-2005-01-19 OS: win32 only
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: teasoft at 21cn dot com
New email:
PHP Version: OS:

 

 [2005-01-16 16:12 UTC] teasoft at 21cn dot com
Description:
------------
"Bug #30658 Temporary files are not deleted" was fixed in linux versions, but is NOT fixed in Windows versions. Temporary files are still created and not deleted once creating images using gd2.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-19 17:23 UTC] teasoft at 21cn dot com
The snapshot for Windows provided above does the same thing as 4.3.10, tmp files are still created and remain.
 [2005-02-02 16:59 UTC] iliaa@php.net
Cannot replicate using latest cvs.
The temporary file removal code is identical in *NIX and Win32
 [2005-02-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-02-19 18:23 UTC] teasoft at 21cn dot com
It's my first time to look into the source codes of PHP.
I found line 1716 in gd.c:

while ((b = fread(buf, 1, sizeof(buf), tmp)) > 0)

is it means a NOT empty file? and i notice .tmp files left are all 0 byte, simply empty. Maybe try >=0 instead will work?
 [2005-02-20 18:45 UTC] iliaa@php.net
That's just the data copying code, the source should never be 0 bytes and even if it was due to some error it does not change the deletion logic.
 [2005-02-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 17:01:29 2024 UTC