php.net |  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
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 !
Your email address:
MUST BE VALID
Solve the problem:
9 - 3 = ?
Subscribe to this entry?

 
 [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.

Regards,
Chris Knight

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-24 10:20 UTC] sniper@php.net
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] sniper@php.net
Sorry. I read this report too quickly. Fixed now in CVS.
Thanks for reporting this.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC