PHP 4.0 Bug #2303: Error Loading PHP4 with gd support
| From: | nobrega at southernct dot edu | Date: | Wed, 15 Sep 1999 16:34:38 +0000 |
| Subject: | PHP 4.0 Bug #2303: Error Loading PHP4 with gd support | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10952@lists.php.net to get a copy of this message | ||
From: nobrega@southernct.edu
Operating system: Linux
PHP version: 4.0 Beta 2
PHP Bug Type: Other
Bug description: Error Loading PHP4 with gd support
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.