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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Fri Dec 27 05:01:27 2024 UTC