Below is the patch for bug #14899 about imagetypes() not reporting 
support for GIFs.
Can someone apply this patch?

Sander

Index: gd.c
===================================================================
RCS file: /repository/php4/ext/gd/gd.c,v
retrieving revision 1.175
diff -u -r1.175 gd.c
--- gd.c        2 Jan 2002 01:25:48 -0000       1.175
+++ gd.c        1 Feb 2002 08:39:44 -0000
@@ -928,7 +928,7 @@
  PHP_FUNCTION(imagetypes)
  {
        int ret=0;       
-#ifdef HAVE_GD_GIF
+#ifdef HAVE_GD_GIF_CREATE
        ret = 1;
  #endif
  #ifdef HAVE_GD_JPG
@@ -1204,7 +1204,7 @@
  #else /* HAVE_GD_GIF_READ */
        php_error(E_WARNING, "ImageCreateFromGif: No GIF read support 
in this PHP build");
        RETURN_FALSE;
-#endif /* HAVE_GD_GIF */
+#endif /* HAVE_GD_GIF_READ */
  }
  /* }}} */
  @@ -1431,10 +1431,10 @@
  #else
        _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, 
PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif);
  #endif
-#else /* HAVE_GD_GIF */
+#else /* HAVE_GD_GIF_CREATE */
        php_error(E_WARNING, "ImageGif: No GIF create support in this 
PHP build");
        RETURN_FALSE;
-#endif /* HAVE_GD_GIF */
+#endif /* HAVE_GD_GIF_CREATE */
  }
  /* }}} */
  

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to