From 09957ab9a874f90cc4769622c856adca0c6d216c 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. Closes GH-14905. --- NEWS | 3 +++ ext/gd/tests/gh10614.phpt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index db78d1404db..7cb17374127 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ PHP NEWS - Dom: . Fixed bug GH-14702 (DOMDocument::xinclude() crash). (nielsdos) +- Gd: + . ext/gd/tests/gh10614.phpt: skip if no PNG support. (orlitzky) + - LibXML: . Fixed bug GH-14563 (Build failure with libxml2 v2.13.0). (nielsdos) diff --git a/ext/gd/tests/gh10614.phpt b/ext/gd/tests/gh10614.phpt index c0689141837..1b91115d748 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--