Skip to content

Commit 80d63e9

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: fix gdImagePngCtxEx call with system libgd
2 parents 72f8dbb + e713890 commit 80d63e9

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
@@ -4274,7 +4274,11 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
42744274
(*func_p)(im, ctx, (int) quality, (int) speed);
42754275
break;
42764276
case PHP_GDIMG_TYPE_PNG:
4277-
(*func_p)(im, ctx, (int) quality, (int) basefilter);
4277+
#ifdef HAVE_GD_BUNDLED
4278+
gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
4279+
#else
4280+
gdImagePngCtxEx(im, ctx, (int) quality);
4281+
#endif
42784282
break;
42794283
case PHP_GDIMG_TYPE_GIF:
42804284
(*func_p)(im, ctx);

0 commit comments

Comments
 (0)