Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Martin Holm
Steve wrote: I am using GD image function with PHP (PHP 4.3.9 on RedHat 9). Today I found that for all images I have created so far (using the ImageGIF() function), there is a temporary file in /tmp with that image. The name of the temp file is a 6 character combination of letters and digits,

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Steve
Jay Blanchard wrote: [snip] But the problem is still there (CGI and CLI sapi tested). I used the -n option, so php.ini can't cause the problem, either. Has anyone else experienced that? [/snip] Yes. You will have to write your own clean-up code for things like this. I don't mean any user

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Steve
http://www.php.net/manual/en/function.imagegif.php - *Note: * Since all GIF support was removed from the GD library in version 1.6, this function is not available if you are using that version of the GD library. http://www.php.net/manual/en/function.imagecreatefromgif.php - *Note: * GIF

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Jay Blanchard
[snip] Yes. You will have to write your own clean-up code for things like this. I don't mean any user generated temporary files, I mean files which are created by the PHP function ImageGIF(). How should I even know which temporary file name GD chose in each case, or whether it created a temp

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Matthew Weier O'Phinney
* Martin Holm [EMAIL PROTECTED]: Steve wrote: I am using GD image function with PHP (PHP 4.3.9 on RedHat 9). Today I found that for all images I have created so far (using the ImageGIF() function), there is a temporary file in /tmp with that image. The name of the temp file is a 6

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 December 2004 16:14, Steve wrote: 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?

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Steve
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? Yes, I also consider this a bug, unless it's something specific to my system. To find out, I posted this here. Is nobody else out there using ImageGIF() with PHP

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Jay Blanchard
[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.

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Jay Blanchard
[snip] But the problem is still there (CGI and CLI sapi tested). I used the -n option, so php.ini can't cause the problem, either. Has anyone else experienced that? [/snip] Yes. You will have to write your own clean-up code for things like this. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Jason Wong
On Monday 13 December 2004 23:21, Jay Blanchard wrote: 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

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Steve
Not necessarily. Several languages require that you write your own clean-up code for things like this. Well, but then it should be at least mentioned in the documentation, right? Can you show me where it says that temp files are left over, or how to get the filename of the temp file so that the

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Richard Lynch
Jay Blanchard wrote: [snip] Yes. You will have to write your own clean-up code for things like this. I don't mean any user generated temporary files, I mean files which are created by the PHP function ImageGIF(). How should I even know which temporary file name GD chose in each case, or

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Richard Lynch
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? Yes, I also consider this a bug, unless it's something specific to my system. To find out, I posted this here. Is nobody else out there using ImageGIF() with