Skip to content

Commit f662103

Browse files
committed
add missing cond.
1 parent e713890 commit f662103

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/gd/gd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4190,13 +4190,15 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
41904190
}
41914191
(*func_p)(im, ctx, (int) quality);
41924192
break;
4193+
#ifdef HAVE_GD_PNG
41934194
case PHP_GDIMG_TYPE_PNG:
41944195
#ifdef HAVE_GD_BUNDLED
41954196
gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
41964197
#else
41974198
gdImagePngCtxEx(im, ctx, (int) quality);
41984199
#endif
41994200
break;
4201+
#endif
42004202
case PHP_GDIMG_TYPE_GIF:
42014203
(*func_p)(im, ctx);
42024204
break;

0 commit comments

Comments
 (0)