RE: [PHP] GD functions don't delete temporary files
| From: | Jay Blanchard | Date: | Mon, 13 Dec 2004 16:29:02 +0000 |
| Subject: | RE: [PHP] GD functions don't delete temporary files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204189@lists.php.net to get a copy of this message | ||
[snip]
> Before the image is created you can get an array of things in the temp
> file, then check for a new thing after the image is created. You can
> verify the file type and if all is kosher, delete it.
Seems like this is something that either the GD lib or PHP should be
doing and
not the user. Shouldn't this be reported as a bug?
[/snip]
Not necessarily. Several languages require that you write your own
clean-up code for things like this.