Skip to content

Commit

Permalink
ext/gd/tests/gh17373.phpt: skip if imagefttext() is not available
Browse files Browse the repository at this point in the history
This test calls imagefttext(), which may not be available if libgd
was built without freetype support.

Closes GH-17891
  • Loading branch information
orlitzky committed Feb 24, 2025
1 parent 769f292 commit 6e8a792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/gd/tests/gh17373.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Bug GH-17373 (imagefttext() ignores clipping rect for palette images)
--EXTENSIONS--
gd
--SKIPIF--
<?php
if(!function_exists('imagefttext')) die('skip imagefttext() not available');
?>
--FILE--
<?php
$im = imagecreate(64, 32);
Expand Down

0 comments on commit 6e8a792

Please sign in to comment.