php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64601 must document since which version imagecreatefromgif correctly handles any path
Submitted: 2013-04-07 00:38 UTC Modified: 2017-01-28 12:21 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: matteosistisette at gmail dot com Assigned:
Status: Open Package: GD related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-04-07 00:38 UTC] matteosistisette at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.imagecreatefromgif#refsect1-
function.imagecreatefromgif-description
---

Information is missing about since which version of PHP imagecreatefromgif() 
correctly handles all paths. This is VITAL and must be specified.

Prior to some version X of PHP, imagecreatefromgif doesn't handle correctly 
paths like "/foo/bar/../myfolder/myfile.gif". It gives a bogus error message 
saying the file is not a valid gif file.
Starting from version X, it works as expected in all cases and resolves such 
path to the correct path, e.g. "/foo/myfolder/myfile.gif".

X is somewhere between 5.1.6 and 5.4.6. 

I guess the same happens with all imagecreatefrom*()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:21 UTC] cmb@php.net
-Package: Documentation problem +Package: GD related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 02:01:26 2019 UTC