#31572 [Opn->Fbk]: Temporary files are not deleted
| From: | iliaa@php.net | Date: | Sun, 20 Feb 2005 17:45:06 +0000 |
| Subject: | #31572 [Opn->Fbk]: Temporary files are not deleted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74320@lists.php.net to get a copy of this message | ||
ID: 31572
Updated by: iliaa@php.net
Reported By: teasoft at 21cn dot com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: win32 only
PHP Version: 4CVS-2005-01-19
Assigned To: iliaa
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-02-19 18:23:33] 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-10 01:00:06] 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-02 16:59:46] iliaa@php.net
Cannot replicate using latest cvs.
The temporary file removal code is identical in *NIX and Win32
------------------------------------------------------------------------
[2005-01-19 17:23:02] 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-01-16 16:12:36] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31572&edit=1