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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
10 + 2 = ?
Subscribe to this entry?

 
 [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-2020 The PHP Group
All rights reserved.
Last updated: Wed Feb 26 14:01:28 2020 UTC