php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #1545 ImageCreateFromGIF does not support URLs
Submitted: 1999-06-15 15:38 UTC Modified: 1999-06-21 18:02 UTC
From: gudmundsdottir at bigfoot dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.9 OS: Linux 2.2.9 / Mandrake 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gudmundsdottir at bigfoot dot com
New email:
PHP Version: OS:

 

 [1999-06-15 15:38 UTC] gudmundsdottir at bigfoot dot com
Documentation currently states that ImageCreateFromGIF will load an image from either a file name or a URL.

a)  there is no current way to differentiate between a relative URL ("/images/blah.gif") and file names ("/home/httpd/images/blah.gif").

b)  the function does not allow remote images to be loaded.  ("http://www.otherserver.com/otherblah.gif").

c)  the function does not allow images to be loaded from virtual directories in Apache.  For instance, if the following is in httpd.conf:
<PRE>
ProxyPass /mirror/ http://www.otherserver.com/
</PRE>
and viewing http://www.thisserver.com/mirror/otherblah.gif works, using
<PRE>
ImageCreateFromGIF("/mirror/otherblah.gif");
</PRE>
and
<PRE>
ImageCreateFromGIF("http://www.thisserver.com/mirror/otherblah.gif");
</PRE>
both do not work.

Either the documentation needs changed, or (preferably) the function needs added functionality.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-21 18:02 UTC] jim at cvs dot php dot net
a) "/images/blah.gif" is not a URL.
b) Works fine here.
c) This also works.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 16:01:36 2025 UTC