GD functions don't delete temporary files
| From: | Steve | Date: | Mon, 13 Dec 2004 11:34:10 +0000 |
| Subject: | GD functions don't delete temporary files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204165@lists.php.net to get a copy of this message | ||
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