Skip to content

Commit 96a0ff7

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: add missing cond.
2 parents d573054 + f662103 commit 96a0ff7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/gd/gd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4273,13 +4273,15 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
42734273
}
42744274
(*func_p)(im, ctx, (int) quality, (int) speed);
42754275
break;
4276+
#ifdef HAVE_GD_PNG
42764277
case PHP_GDIMG_TYPE_PNG:
42774278
#ifdef HAVE_GD_BUNDLED
42784279
gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
42794280
#else
42804281
gdImagePngCtxEx(im, ctx, (int) quality);
42814282
#endif
42824283
break;
4284+
#endif
42834285
case PHP_GDIMG_TYPE_GIF:
42844286
(*func_p)(im, ctx);
42854287
break;

0 commit comments

Comments
 (0)