From: Hartmut Holzgraefe Date: Fri, 9 Feb 2001 21:04:45 +0000 (+0000) Subject: libjpeg-not-installed protection X-Git-Tag: php-4.0.5RC1~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8a83a37220a1ccdec39a00761d4ae1e110f7ddd;p=php libjpeg-not-installed protection --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index c8acb06644..853a1813fa 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2761,6 +2761,7 @@ static void _php_image_bw_convert( gdImagePtr im_org, int threshold, FILE *out) } +#ifdef HAVE_GD_JPG /* _php_image_convert converts jpeg/png images to wbmp and resizes them as needed */ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) { zval **f_org, **f_dest, **height, **width, **threshold; @@ -2938,6 +2939,8 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) { } WRONG_PARAM_COUNT; } +#endif /* HAVE_GD_JPG */ + #endif /* HAVE_GD_WBMP */