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.
This commit is contained in:
Michael Orlitzky 2024-07-10 08:20:31 -04:00 committed by Niels Dossche
parent eb8c3cb79a
commit 09957ab9a8
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5
2 changed files with 6 additions and 0 deletions

3
NEWS
View file

@ -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)

View file

@ -5,6 +5,9 @@ gd
--SKIPIF--
<?php
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.4', '>=')) die("skip test requires GD 2.3.4 or older");
if (!(imagetypes() & IMG_PNG)) {
die("skip No PNG support");
}
?>
--FILE--
<?php