Skip to content

Commit 6e8a792

Browse files
committed
ext/gd/tests/gh17373.phpt: skip if imagefttext() is not available
This test calls imagefttext(), which may not be available if libgd was built without freetype support. Closes phpGH-17891
1 parent 769f292 commit 6e8a792

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/gd/tests/gh17373.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Bug GH-17373 (imagefttext() ignores clipping rect for palette images)
33
--EXTENSIONS--
44
gd
5+
--SKIPIF--
6+
<?php
7+
if(!function_exists('imagefttext')) die('skip imagefttext() not available');
8+
?>
59
--FILE--
610
<?php
711
$im = imagecreate(64, 32);

0 commit comments

Comments
 (0)