Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 169771

Summary: after running php file with imagegif() function temp imagefile is not deleted
Product: Red Hat Enterprise Linux 4 Reporter: Ferdi <ferdi>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: varekova
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-12 13:18:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Temp file created in /tmp directory none

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 ***