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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 - 10 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC