Bug 169771 - after running php file with imagegif() function temp imagefile is not deleted
Summary: after running php file with imagegif() function temp imagefile is not deleted
Keywords:
Status: CLOSED DUPLICATE of bug 182719
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: php
Version: 4.0
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-03 14:19 UTC by Ferdi
Modified: 2008-08-02 23:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-12 13:18:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Temp file created in /tmp directory (38.93 KB, image/gif)
2005-11-08 09:30 UTC, Ferdi
no flags Details

Description Ferdi 2005-10-03 14:19:51 UTC
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:

Comment 1 Phil Knirsch 2005-11-07 16:23:34 UTC
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

Comment 2 Ferdi 2005-11-08 09:30:09 UTC
Created attachment 120807 [details]
Temp file created in /tmp directory

An temp file created in the /tmp directory

Comment 3 Ferdi 2005-11-08 09:36:37 UTC
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.

Comment 4 Adam Tkac 2006-10-27 13:08:55 UTC
please, could you try reproduce this bug with latest version of php-gd

Comment 5 Joe Orton 2006-12-12 13:18:01 UTC
This is fixed in php-4.3.9-3.10 and later.

*** This bug has been marked as a duplicate of 182719 ***


Note You need to log in before you can comment on or make changes to this bug.