#30696 [NEW]: using gd to create gif leaves tmp files in root directory

From: Date: Fri, 05 Nov 2004 19:31:32 +0000
Subject: #30696 [NEW]: using gd to create gif leaves tmp files in root directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68734@lists.php.net to get a copy of this message
From: kmacrae at yahoo dot com Operating system: win XP sp2 PHP version: 4.3.9 PHP Bug Type: GD related Bug description: using gd to create gif leaves tmp files in root directory 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 bug report at http://bugs.php.net/?id=30696&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30696&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30696&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30696&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30696&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30696&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30696&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30696&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30696&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30696&r=support Expected behavior: http://bugs.php.net/fix.php?id=30696&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30696&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30696&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30696&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30696&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30696&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30696&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30696&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30696&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30696&r=mysqlcfg

« previous php.bugs (#68734) next »