From fa043f4716dcbd21630e16584e2d8d6baf17c77d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 10 Jul 2024 08:20:31 -0400 Subject: [PATCH] ext/gd/tests/gh10614.phpt: skip if no PNG support This test uses imagecreatefrompng(), which won't be there if libgd was built without PNG support. --- ext/gd/tests/gh10614.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gd/tests/gh10614.phpt b/ext/gd/tests/gh10614.phpt index c0689141837c..1b91115d748d 100644 --- a/ext/gd/tests/gh10614.phpt +++ b/ext/gd/tests/gh10614.phpt @@ -5,6 +5,9 @@ gd --SKIPIF-- =')) die("skip test requires GD 2.3.4 or older"); +if (!(imagetypes() & IMG_PNG)) { + die("skip No PNG support"); +} ?> --FILE--