Re: [PATCH] fix for #14899
| From: | Derick Rethans | Date: | Fri, 01 Feb 2002 08:54:07 +0000 |
| Subject: | Re: [PATCH] fix for #14899 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78747@lists.php.net to get a copy of this message | ||
Hello Sander,
I committed it.
Derick
On Fri, 1 Feb 2002, Sander Roobol wrote:
> 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
>
Derick Rethans
---------------------------------------------------------------------
PHP: Scripting the Web - www.php.net - derick@php.net
SRM: Site Resource Manager - www.vl-srm.net
---------------------------------------------------------------------
JDI Media Solutions - www.jdimedia.nl - d.rethans@jdimedia.nl
Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands
---------------------------------------------------------------------