From: Derick Rethans Date: Fri, 1 Feb 2002 08:53:47 +0000 (+0000) Subject: - Fix for bug 14899 (patch by Sander Roobol ) X-Git-Tag: PRE_ISSET_PATCH~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32e9ea6c648ee3954a0e856780205be15e34430d;p=php - Fix for bug 14899 (patch by Sander Roobol ) --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index fd2458d338..e5f8aa200e 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -928,7 +928,7 @@ PHP_FUNCTION(imagecreate) 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 @@ PHP_FUNCTION(imagecreatefromgif) #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 @@ PHP_FUNCTION(imagegif) #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 */ } /* }}} */