Skip to content

Commit 73d5dd7

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: fix gdImagePngCtxEx call with system libgd
2 parents cddb65b + 80d63e9 commit 73d5dd7

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
@@ -4276,7 +4276,11 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
42764276
(*func_p)(im, ctx, (int) quality, (int) speed);
42774277
break;
42784278
case PHP_GDIMG_TYPE_PNG:
4279-
(*func_p)(im, ctx, (int) quality, (int) basefilter);
4279+
#ifdef HAVE_GD_BUNDLED
4280+
gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
4281+
#else
4282+
gdImagePngCtxEx(im, ctx, (int) quality);
4283+
#endif
42804284
break;
42814285
case PHP_GDIMG_TYPE_GIF:
42824286
(*func_p)(im, ctx);

0 commit comments

Comments
 (0)