|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12945 GD 1.8.4 still has gdImageCreateFromGif but not gdImageGif
Submitted: 2001-08-24 08:28 UTC Modified: 2001-08-24 14:38 UTC
From: chris at aims dot com dot au Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: FreeBSD 4.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chris at aims dot com dot au
New email:
PHP Version: OS:


 [2001-08-24 08:28 UTC] chris at aims dot com dot au
I'm building PHP4 4.0.6 from the FreeBSD ports tree and enabling GD support. The version of GD in the FreeBSD ports tree is 1.8.4.
The problem I'm having is that PHP fails to build correctly. I've tracked it down to the fact that GD 1.8.4 still has the source for gdImageCreateFromGif and gdImageCreateFromGifCtx, but the definitions have been removed from gd.h. Some no-so-clever person decided to add the function definitions for these functions. This introduces the side effect that PHP4's configure goes looking for these function definitions, then assumes that gdImageGif is defined when used in ext/gd/gd.c, function PHP_FUNCTION(imagegif), line 1404.
I'm going to log this bug with FreeBSD ports, but it might be best to explicitly check for gdImageGif, rather than the function prototypes for gdImageCreateFromGif.

Thanks for the only decent Web development tool.

Chris Knight


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-24 10:20 UTC]
Nothing wrong with the configure. You just have conflicting
versions of GD library in your system. Remove all of them
and reinstall it. Do the same for PHP.

 [2001-08-24 14:38 UTC]
Sorry. I read this report too quickly. Fixed now in CVS.
Thanks for reporting this.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 13:01:32 2024 UTC