Skip to content

Commit e40a59c

Browse files
committed
ext/gd/tests/imagebmp_basic.phpt: require PNG support
After c1c6520, libgd needs PNG support to pass this test. Skip the test if we are using (external) libgd without it.
1 parent 359b9a5 commit e40a59c

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)