Fix GH-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 GH-17910
This commit is contained in:
Michael Orlitzky 2025-02-23 22:35:55 -05:00 committed by David Carlier
parent 065b4ec125
commit 174a7fe6f9
No known key found for this signature in database
GPG key ID: 2FB76A8CE6CD2B41

View file

@ -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);