mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
eb8c3cb79a
commit
09957ab9a8
2 changed files with 6 additions and 0 deletions
3
NEWS
3
NEWS
|
@ -14,6 +14,9 @@ PHP NEWS
|
||||||
- Dom:
|
- Dom:
|
||||||
. Fixed bug GH-14702 (DOMDocument::xinclude() crash). (nielsdos)
|
. Fixed bug GH-14702 (DOMDocument::xinclude() crash). (nielsdos)
|
||||||
|
|
||||||
|
- Gd:
|
||||||
|
. ext/gd/tests/gh10614.phpt: skip if no PNG support. (orlitzky)
|
||||||
|
|
||||||
- LibXML:
|
- LibXML:
|
||||||
. Fixed bug GH-14563 (Build failure with libxml2 v2.13.0). (nielsdos)
|
. Fixed bug GH-14563 (Build failure with libxml2 v2.13.0). (nielsdos)
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,9 @@ gd
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.4', '>=')) die("skip test requires GD 2.3.4 or older");
|
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--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue