Re: GD functions don't delete temporary files
| From: | Martin Holm | Date: | Mon, 13 Dec 2004 14:09:39 +0000 |
| Subject: | Re: GD functions don't delete temporary files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204170@lists.php.net to get a copy of this message | ||
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, e.g. "jvc5Ne". To be sure it's not a config problem, I compiled again with minumum options and minimum script ./configure --with-gd --with-zlib <?php $im = ImageCreate(20, 20); ImageGIF($im); ImageDestroy($im); ?> 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? Regards, 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 support was removed from the GD library in Version 1.6, and added back in Version 2.0.28. This function is not available between these versions. Regards, Martin