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: | php | Assignee: | Joe Orton <jorton> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.0 | CC: | 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: |
|
||||||
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 |
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: