Skip to content

Commit 0ccc6ef

Browse files
orlitzkycharmitro
authored andcommitted
Fix phpGH-17891 gh17373.phpt test issue without freetype support
skip if imagefttext() is not available This test calls imagefttext(), which may not be available if libgd was built without freetype support. Closes phpGH-17910
1 parent 0d33e19 commit 0ccc6ef

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)