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: 2021-03-31 10:43 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: matteosistisette at gmail dot com Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matteosistisette at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 12:21 UTC] cmb@php.net
-Package: Documentation problem +Package: GD related
 [2021-03-31 10:43 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-31 10:43 UTC] cmb@php.net
> X is somewhere between 5.1.6 and 5.4.6. 

The PHP manual is no longer supposed to document PHP 5 behavior.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 16:01:30 2024 UTC