Skip to content

Commit

Permalink
fix gdImagePngCtxEx call with system libgd
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Nov 25, 2021
1 parent 9237055 commit e713890
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/gd/gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4191,7 +4191,11 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
(*func_p)(im, ctx, (int) quality);
break;
case PHP_GDIMG_TYPE_PNG:
(*func_p)(im, ctx, (int) quality, (int) basefilter);
#ifdef HAVE_GD_BUNDLED
gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
#else
gdImagePngCtxEx(im, ctx, (int) quality);
#endif
break;
case PHP_GDIMG_TYPE_GIF:
(*func_p)(im, ctx);
Expand Down

0 comments on commit e713890

Please sign in to comment.