Skip to content

Commit e713890

Browse files
committed
fix gdImagePngCtxEx call with system libgd
1 parent 9237055 commit e713890

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/gd/gd.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4191,7 +4191,11 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
41914191
(*func_p)(im, ctx, (int) quality);
41924192
break;
41934193
case PHP_GDIMG_TYPE_PNG:
4194-
(*func_p)(im, ctx, (int) quality, (int) basefilter);
4194+
#ifdef HAVE_GD_BUNDLED
4195+
gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
4196+
#else
4197+
gdImagePngCtxEx(im, ctx, (int) quality);
4198+
#endif
41954199
break;
41964200
case PHP_GDIMG_TYPE_GIF:
41974201
(*func_p)(im, ctx);

0 commit comments

Comments
 (0)