#30696 [Opn->Csd]: using gd to create gif leaves tmp files in root directory
| From: | derick@php.net | Date: | Sat, 06 Nov 2004 00:56:17 +0000 |
| Subject: | #30696 [Opn->Csd]: using gd to create gif leaves tmp files in root directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68737@lists.php.net to get a copy of this message | ||
ID: 30696
Updated by: derick@php.net
Reported By: kmacrae at yahoo dot com
-Status: Open
+Status: Closed
Bug Type: GD related
Operating System: win XP sp2
PHP Version: 4.3.9
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-11-05 20:31:19] kmacrae at yahoo dot com
Description:
------------
Using bundled gd2 to create gif leaves tmp files in root directory.
The tmp files are the gif images being generated by the scripts with a
.tmp extension instead of a .gif extension.
No issues with jpeg or png!
Problem also exists in 5.02 release (same gd 2.0.28).
Writing and leaving is slow and messy... if not cleaned will crash
server.
Reproduce code:
---------------
<?
$width=200;
$height=200;
//Create a blank image canvas
$image = ImageCreate($width, $height);
// allocate color
$black = imagecolorallocate($image, 0x00, 0x00, 0x00);
//Draw it
ImageRectangle($image, 0, 0, $width-1, $height-1, $black);
// Flush Image
//header("Content-type: image/jpeg");//OK
//ImageJPEG($image, '', 100);
//header("Content-type: image/png");//OK
//ImagePNG($image);
header("Content-type: image/gif");//leaves ??.tmp in C:\
ImageGIF($image);
ImageDestroy($image);
?>
Expected result:
----------------
just the image no .tmp files
Actual result:
--------------
got .tmp file and image
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30696&edit=1