php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11834 ImageType() && IMG_GIF & GD 1.8.4
Submitted: 2001-07-02 08:32 UTC Modified: 2001-07-02 08:43 UTC
From: jeremy at co-comp dot co dot uk Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.0.5 OS: Linux Redhat 7.1 2.4.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeremy at co-comp dot co dot uk
New email:
PHP Version: OS:

 

 [2001-07-02 08:32 UTC] jeremy at co-comp dot co dot 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'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-02 08:36 UTC] sterling@php.net
That's incorrect code, its:

if (ImageTypes() & IMG_GIF) {


 [2001-07-02 08:40 UTC] derick@php.net
User error = bogus
 [2001-07-02 08:43 UTC] jeremy at co-comp dot co dot uk
Oops! RTFM Again!
 [2001-07-02 08:43 UTC] jeremy at co-comp dot co dot uk
Thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC