Bug #11834 Updated: ImageType() && IMG_GIF & GD 1.8.4
| From: | jeremy at co-comp dot co dot uk | Date: | Mon, 02 Jul 2001 12:43:19 +0000 |
| Subject: | Bug #11834 Updated: ImageType() && IMG_GIF & GD 1.8.4 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58684@lists.php.net to get a copy of this message | ||
ID: 11834
User Update by: jeremy@co-comp.co.uk
Status: Bogus
Bug Type: GD related
Operating system: Linux Redhat 7.1 2.4.2
PHP Version: 4.0.5
Description: ImageType() && IMG_GIF & GD 1.8.4
Oops! RTFM Again!
Previous Comments:
---------------------------------------------------------------------------
[2001-07-02 08:40:39] derick@php.net
User error = bogus
---------------------------------------------------------------------------
[2001-07-02 08:36:05] sterling@php.net
That's incorrect code, its:
if (ImageTypes() & IMG_GIF) {
---------------------------------------------------------------------------
[2001-07-02 08:32:45] jeremy@co-comp.co.uk
Trying:
if (ImageTypes() && IMG_GIF) {
echo 'GIFS enabled';
$im = imagecreatefromgif('img.gif');
}
Still works with GD library that does not support GIFS
producing 'Warning: ImageCreateFromGif: No GIF support in
this PHP build' - it should not have got that far!
'./configure' '--with-mysql=/usr/local/mysql'
'--enable-track-vars' '--enable-safe-mode'
'--with-apxs=/usr/local/apache/bin/apxs'
'--with-zlib=/usr/local/lib' '--with-gd'
'--with-gd-dir=/usr' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--enable-shared'
'--with-sablot=/usr/local'
'--enable-sablot-errors-descriptive' '--with-xml'
'--no-create' '--no-recursion'
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11834