Bug #11834 Updated: ImageType() && IMG_GIF & GD 1.8.4

From: Date: Mon, 02 Jul 2001 12:40:40 +0000
Subject: Bug #11834 Updated: ImageType() && IMG_GIF & GD 1.8.4
Groups: php.dev 
Request: Send a blank email to php-dev+get-58683@lists.php.net to get a copy of this message
ID: 11834 Updated by: derick Reported By: jeremy@co-comp.co.uk Old-Status: Closed Status: Bogus Bug Type: GD related Operating system: PHP Version: 4.0.5 Assigned To: Comments: User error = bogus Previous Comments: --------------------------------------------------------------------------- [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' --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11834&edit=2

« previous php.dev (#58683) next »