RE: [PHP-DEV] [PATCH] fix for #14899

From: Date: Fri, 01 Feb 2002 08:54:40 +0000
Subject: RE: [PHP-DEV] [PATCH] fix for #14899
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78748@lists.php.net to get a copy of this message
Would this also, by chance, fix my problem? :) james > -----Original Message----- > From: Sander Roobol [mailto:sander@php.net] > Sent: Friday, February 01, 2002 8:51 AM > To: php-dev@lists.php.net > Subject: [PHP-DEV] [PATCH] fix for #14899 > > > 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: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#78748) next »