|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-06 01:56 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 16:00:02 2025 UTC |
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