php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2303 Error Loading PHP4 with gd support
Submitted: 1999-09-15 12:34 UTC Modified: 1999-10-24 12:49 UTC
From: nobrega at southernct dot edu Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 2 OS: Linux
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: nobrega at southernct dot edu
New email:
PHP Version: OS:

 

 [1999-09-15 12:34 UTC] nobrega at southernct dot edu
I was not to sure on what type of bug this was so I placed it in other.. It may also fall under Compile Failure or Dynamic lodaing related, I guess that would be upto you.

The bug is this: the newest gd libraries do not suuport gif, they only support png.

This bug applied to me when I loaded apache with PHP4 as a DSO, I'm sure it applies to all other compilations of PHP4 where the system has the newest version of gd running.

The load failed to do unsupported call to gdImageCreateFromGif and gdImageGif.

To correct this problem, I had to change all lines in php4.0b2/ext/gd/gd.c and php4.0b2/ext/gd/php3_gd.h that had imagecreatefromgif and imagegif to imagecreatefrompng and imagepng.

After this was done and the module was recompiled, it loaded and functioned normaly.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-24 12:49 UTC] sas at cvs dot php dot net
This is addressed in the latest CVS.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 02:00:01 2026 UTC