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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC