Skip to content

Commit

Permalink
Merge branch 'PHP-8.0' into PHP-8.1
Browse files Browse the repository at this point in the history
* PHP-8.0:
  fix gdImagePngCtxEx call with system libgd
  • Loading branch information
remicollet committed Nov 25, 2021
2 parents 72f8dbb + e713890 commit 80d63e9
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 @@ -4274,7 +4274,11 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
(*func_p)(im, ctx, (int) quality, (int) speed);
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 80d63e9

Please sign in to comment.