From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Description of problem: The following script should create, show en delete a image. <?php $im_des= imagecreatefromgif("./maps/DNK.gif"); imagegif($im_des); imagedestroy($im_des); ?> Every time this script is run, a temp image is created in the /tmp dir. This file is never deleted after the script is ended. Even when I run imagedestroy($im_des) which should release all resources. Version-Release number of selected component (if applicable): php-gd-4.3.9-3.7 How reproducible: Always Steps to Reproduce: 1. create same file 2. access file Actual Results: ls -all /tmp will show temp files like "shQXTz" Expected Results: the resources should be released, so the temp file should be deleted. Additional info:
Tried reproducing with Red Hat Enterprise Linux 4 Update 2. I can't find any leftover temp files in /tmp or /var/tmp after running this command. Maybe the leftover files come from some other place? Read ya, Phil
Created attachment 120807 [details] Temp file created in /tmp directory An temp file created in the /tmp directory
I'v attached a tempfile wich is created in the /tmp directory. If you rename the file to test.gif, you'll get the image created by the script. Every time I run the script a extra temp file is created.
please, could you try reproduce this bug with latest version of php-gd
This is fixed in php-4.3.9-3.10 and later. *** This bug has been marked as a duplicate of 182719 ***