Skip to content

Commit ac8248b

Browse files
orlitzkydevnexen
authored andcommitted
ext/gd: imagebmp_basic.phpt test require PNG support.
After c1c6520, libgd needs PNG support to pass this test. Skip the test if we are using (external) libgd without it. close GH-22016
1 parent f340037 commit ac8248b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ext/gd/tests/imagebmp_basic.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
imagebmp() - basic functionality
33
--EXTENSIONS--
44
gd
5+
--SKIPIF--
6+
<?php
7+
if (!(imagetypes() & IMG_PNG)) {
8+
die("skip No PNG support");
9+
}
10+
?>
511
--FILE--
612
<?php
713
// create an image

0 commit comments

Comments
 (0)